Part Number Hot Search : 
74HC6 ZB6ZG51B 2SD2010 CLCD765 SAC18 TW0236A MR756 12600
Product Description
Full Text Search
 

To Download NECVR4102 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  sed1374 embedded memory color lcd controller sed1374 technical manual issue date: 99/05/05 document number: x26a-q-001-04 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center sed1374 technical manual x26a-q-001-04 issue date: 99/05/05 this page left blank
epson research and development page 3 vancouver design center technical manual sed1374 issue date: 99/05/05 x26a-q-001-04 customer support information comprehensive support tools seiko epson corp. provides to the system designer and computer oem manufacturer a complete set of resources and tools for the development of graphics systems. evaluation / demonstration board ? assembled and fully tested graphics evaluation board with installation guide and sche- matics. ? to borrow an evaluation board, please contact your local seiko epson corp. sales repre- sentative. chip documentation ? technical manual includes data sheet, application notes, and programmers refer- ence. software ? oem utilities. ? user utilities. ? evaluation software. ? to obtain these programs, contact application engineering support. application engineering support engineering and sales support is provided by: japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com
page 4 epson research and development vancouver design center sed1374 technical manual x26a-q-001-04 issue date: 99/05/05 this page left blank
epson research and development page 5 vancouver design center technical manual sed1374 issue date: 99/05/05 x26a-q-001-04 table of contents introduction sed1374 embedded memory color lcd controller product brief specification sed1374 hardware functional specification programmers reference sed1374 programming notes and examples sed1374 register summary utilities 1374cfg.exe file configuration program 1374show demonstration program 1374splt display utility 1374virt display utility 1374play diagnostic utility 1374bmp demonstration program 1374pwr power save utility drivers sed1374 windows? ce display drivers evaluation sdu1374b0c rev. 1 isa bus evaluation board user manual application notes interfacing to the toshiba mips tx3912 processor power consumption interfacing to the motorola mc68328 microprocessor interfacing to the nec vr4102 microprocessor interfacing the sed1374 to the pc card bus interfacing to the motorola mpc821 microprocessor interfacing to the motorola mcf5307 microprocessor interfacing to the philips mips pr31500/pr31700 processor sdu1374/75-tmpr3912.22u cpu module interfacing to an 8-bit processor
page 6 epson research and development vancouver design center sed1374 technical manual x26a-q-001-04 issue date: 99/05/05 this page left blank
x26a-c-001-05 1 graphics sed1374 energy saving epson october 1998 sed1374 embedded memory color lcd controller n description the sed1374 is a color/monochrome lcd graphics controller with an embedded 40k byte sram display buffer. the high integration of the sed1374 provides a low cost, low power, single chip solution to meet the requirements of embedded markets such as office automation equipment, mobile communications devices, and hand-held pcs where board size and battery life are major concerns. products requiring a portrait display can take advantage of the hardware portrait mode feature of the sed1374. virtual and split screen are just some of the display modes supported. the above features, combined with the operating system independence of the sed1374, make it the ideal solution for a wide variety of applications. n features memory interface ? embedded 40k byte sram display buffer. cpu interface ? direct support of the following interfaces: hitachi sh-3. hitachi sh-4. motorola m68k. mpu bus interface with programmable ready. ? direct memory mapping of internal registers. ? cpu write buffer. display support ? 4/8-bit monochrome lcd interface. ? 4/8-bit color lcd interface. ? 16-bit color lcd interface with minimal external curcuitry. ? single-panel, single-drive passive displays. ? dual-panel, dual-drive passive displays. ? active matrix tft / tfd interface. ? example resolutions: 640x480 at a color depth of 1 bpp 640x240 at a color depth of 2 bpp 320x240 at a color depth of 4 bpp 240x160 at a color depth of 8 bpp clock source ? single clock input for both pixel and memory clocks. ? the sed1374 clock source can be internally divided down for a higher frequency clock input. ? dynamic switching of memory clocks in portrait mode. display modes ? hardware portrait mode: direct hardware rotation of display image for portrait mode display. ? 1/2/4 bit-per-pixel (bpp), 2/4/16-level grayscale display. ? 1/2/4/8 bit-per-pixel, 2/4/16/256-level color display. ? up to 16 shades of gray by frm on monochrome passive lcd panels. ? 256 simultaneous of 4096 colors on color passive and active matrix lcd panels. ? split screen display for all panel modes allows two different images to be simultaneously displayed. ? virtual display support (displays images larger than the panel size through the use of panning). power down modes ? hardware and software suspend modes. ? lcd power-down sequencing. general purpose io pins ? five general purpose input / output pins are available. operating voltage ? 2.7 volts to 5.5 volts. package ? 80-pin qfp14 surface mount package.
x26a-c-001-05 2 graphics sed1374 n system block diagram sed1374 flat panel data and cpu control signals digital out actual size for system integration services for windows? ce contact: epson research & development, inc. suite #320 - 11120 horseshoe way richmond, b.c., canada v7a 5h7 tel: (604) 275-5151 fax: (604) 275-2167 email: wince@erd.epson.com http://www.erd.epson.com contact your sales representative for these comprehensive design tools: ? sed1374 technical manual ? sdu1374 evaluation boards ? windows a ce display driver ? cpu independent software utilities japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com copyright ?1998 epson research and development, inc. all rights reserved. vdc information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko ep- son/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. microsoft, windows, and the windows ce logo are registered trademar ks of microsoft corporation.
sed1374 embedded memory lcd controller hardware functional specification document number: x26a-a-001-02 copyright ? 1998, 1999 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 this page left blank
epson research and development page 3 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.1 scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.2 overview description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.1 integrated frame buffer . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.2 cpu interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.3 display support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.4 display modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.5 clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.6 miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.7 package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3 typical system implementation diagrams . . . . . . . . . . . . . . . . . . . . . . 12 4 functional block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1 functional block descriptions . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1.1 host interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1.2 memory controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1.3 sequence controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1.4 look-up table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.1.5 lcd interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.1.6 power save . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 5 pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 5.1 pinout diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 5.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.2.1 host interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.2.2 lcd interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 5.2.3 clock input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.2.4 miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.2.5 power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.3 summary of configuration options . . . . . . . . . . . . . . . . . . . . . . 22 5.4 host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . 22 5.5 lcd interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . 23 6 d.c. characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 7 a.c. characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 7.1 bus interface timing . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 7.1.1 sh-4 interface timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6 7.1.2 sh-3 interface timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 8 7.1.3 motorola m68k #1 interface timing . . . . . . . . . . . . . . . . . . . . . . . . . 30
page 4 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 7.1.4 motorola m68k #2 interface timing . . . . . . . . . . . . . . . . . . . . . . . . . 31 7.1.5 generic #1 interface timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 7.1.6 generic #2 interface timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 7.2 clock input requirements . . . . . . . . . . . . . . . . . . . . . . . . . .34 7.3 display interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 7.3.1 power on/reset timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 7.3.2 power down/up timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 7.3.3 single monochrome 4-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . 37 7.3.4 single monochrome 8-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . 39 7.3.5 single color 4-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 7.3.6 single color 8-bit panel timing (format 1) . . . . . . . . . . . . . . . . . . . . . 43 7.3.7 single color 8-bit panel timing (format 2) . . . . . . . . . . . . . . . . . . . . . 45 7.3.8 dual monochrome 8-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . . 47 7.3.9 dual color 8-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 7.3.10 9/12-bit tft/md-tfd panel timing . . . . . . . . . . . . . . . . . . . . . . . . . 51 8 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 8.1 register mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 8.2 register descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 9 frame rate calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70 10 display data formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 1 11 look-up table architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72 11.1 gray shade display modes . . . . . . . . . . . . . . . . . . . . . . . . . .72 11.2 color display modes . . . . . . . . . . . . . . . . . . . . . . . . . . . .75 12 swivelview? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 12.1 default swivelview mode . . . . . . . . . . . . . . . . . . . . . . . . . .79 12.1.1 how to set up default swivelview mode . . . . . . . . . . . . . . . . . . . . . . 80 12.2 alternate swivelview mode . . . . . . . . . . . . . . . . . . . . . . . . .81 12.2.1 how to set up alternate swivelview mode . . . . . . . . . . . . . . . . . . . . . 82 12.3 comparison between default and alternate swivelview modes . . . . . . . . . . .83 12.4 swivelview mode limitations . . . . . . . . . . . . . . . . . . . . . . . .83 13 power save modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 4 13.1 software power save mode . . . . . . . . . . . . . . . . . . . . . . . . .84 13.2 hardware power save mode . . . . . . . . . . . . . . . . . . . . . . . . .84 13.3 power save mode function summary . . . . . . . . . . . . . . . . . . . . .85 13.4 panel power up/down sequence . . . . . . . . . . . . . . . . . . . . . . .8 5 13.5 turning off bclk between accesses . . . . . . . . . . . . . . . . . . . . .86 13.6 clock requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 14 mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88
epson research and development page 5 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 list of tables table 5-1: summary of power on/reset options . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 table 5-2: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 table 5-3: lcd interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 table 6-1: absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 6-2: recommended operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 6-3: input specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 6-4: output specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 table 7-1: sh-4 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 table 7-2: sh-3 bus timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 table 7-3: m68k #1 bus timing (mc68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 7-4: m68k #2 timing (mc68030) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 7-5: generic #1 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 7-6: generic #2 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 table 7-7: clock input requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 table 7-8: power down/up timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 table 8-1: panel data format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 8-2: gray shade/color mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 8-3: high performance selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 8-4: inverse video mode select options . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 table 8-5: hardware power save/gpio0 operation . . . . . . . . . . . . . . . . . . . . . . . . . 58 table 8-6: software power save mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 8 table 8-7: look-up table access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 table 8-8: selection of swivelview mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 8-9: selection of pclk and mclk in swivelview mode . . . . . . . . . . . . . . . . . . . 69 table 11-1: look-up table configurations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 table 12-1: default and alternate swivelview mode comparison . . . . . . . . . . . . . . . . . . 83 table 13-1: power save mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 13-2: software power save mode summary . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 13-3: hardware power save mode summary . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 13-4: power save mode function summary . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 table 13-5: sed1374 internal clock requirements . . . . . . . . . . . . . . . . . . . . . . . . . . 8 7
page 6 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 this page left blank
epson research and development page 7 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 list of figures figure 3-1: typical system diagram (sh-4 bus). . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 figure 3-2: typical system diagram (sh-3 bus). . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 figure 3-3: typical system diagram (m68k #1 bus) . . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 3-4: typical system diagram (m68k #2 bus) . . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 3-5: typical system diagram (generic #1 bus) . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 3-6: typical system diagram (generic #2 bus - e.g. isa bus). . . . . . . . . . . . . . . . . 14 figure 4-1: system block diagram showing data paths . . . . . . . . . . . . . . . . . . . . . . . . 15 figure 5-1: pinout diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 figure 7-1: sh-4 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 figure 7-2: sh-3 bus timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 figure 7-3: m68k #1 bus timing (mc68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 figure 7-4: m68k #2 timing (mc68030) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 figure 7-5: generic #1 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 figure 7-6: generic #2 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 figure 7-7: clock input requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 7-8: lcd panel power on/reset timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 figure 7-9: power down/up timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 figure 7-10: single monochrome 4-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . 37 figure 7-11: single monochrome 4-bit panel a.c. timing . . . . . . . . . . . . . . . . . . . . . . . 38 figure 7-12: single monochrome 8-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . 39 figure 7-13: single monochrome 8-bit panel a.c. timing . . . . . . . . . . . . . . . . . . . . . . . 40 figure 7-14: single color 4-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 figure 7-15: single color 4-bit panel a.c. timing . . . . . . . . . . . . . . . . . . . . . . . . . . .42 figure 7-16: single color 8-bit panel timing (format 1) . . . . . . . . . . . . . . . . . . . . . . . . 43 figure 7-17: single color 8-bit panel a.c. timing (format 1) . . . . . . . . . . . . . . . . . . . . . 44 figure 7-18: single color 8-bit panel timing (format 2) . . . . . . . . . . . . . . . . . . . . . . . . 45 figure 7-19: single color 8-bit panel a.c. timing (format 2) . . . . . . . . . . . . . . . . . . . . . 46 figure 7-20: dual monochrome 8-bit panel timing. . . . . . . . . . . . . . . . . . . . . . . . . . . 47 figure 7-21: dual monochrome 8-bit panel a.c. timing . . . . . . . . . . . . . . . . . . . . . . . . 48 figure 7-22: dual color 8-bit panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 figure 7-23: dual color 8-bit panel a.c. timing . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 figure 7-24: 12-bit tft/md-tfd panel timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 figure 7-25: tft/md-tfd a.c. timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 figure 8-1: screen-register relationship, split screen. . . . . . . . . . . . . . . . . . . . . . . . . 6 4 figure 10-1: 1/2/4/8 bit-per-pixel display data memory organization. . . . . . . . . . . . . . . . . 71 figure 11-1: 2-level gray-shade mode look-up table architecture . . . . . . . . . . . . . . . . . 72 figure 11-2: 4-level gray-shade mode look-up table architecture . . . . . . . . . . . . . . . . . 73
page 8 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 figure 11-3: 16-level gray-shade mode look-up table architecture . . . . . . . . . . . . . . . . .73 figure 11-4: look-up table bypass mode architecture. . . . . . . . . . . . . . . . . . . . . . . . .74 figure 11-5: 2-level color look-up table architecture . . . . . . . . . . . . . . . . . . . . . . . .75 figure 11-6: 4-level color mode look-up table architecture . . . . . . . . . . . . . . . . . . . . .76 figure 11-7: 16-level color mode look-up table architecture . . . . . . . . . . . . . . . . . . . .77 figure 11-8: 256-level color mode look-up table architecture. . . . . . . . . . . . . . . . . . . .78 figure 12-1: relationship between the screen image and the image refreshed by sed1374 . . . . .79 figure 12-2: relationship between the screen image and the image refreshed by sed1374 . . . . .81 figure 13-1: panel on/off sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86 figure 14-1: mechanical drawing qfp14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88
epson research and development page 9 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 1 introduction 1.1 scope this is the functional specification for the sed1374 embedded memory lcd controller chip. included in this document are timing diagrams, ac and dc characteristics, register descriptions, and power management descriptions. this document is intended for two audiences: video subsystem designers and software developers. please check the epson electronics america website at http://www.eea.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com. 1.2 overview description the sed1374 is a color / monochrome lcd graphics controller with an embedded 40k byte sram display buffer. the high integration of the sed1374 provides a low cost, low power, single chip solution to meet the requirements of embedded markets such as office automation equipment, mobile communications devices, and hand-held pcs where board size and battery life are major concerns. products requiring a portrait display can take advantage of the swivelview? (90 hardware rotate) feature of the sed1374. virtual and split screen are just some of the display modes supported. the above features, combined with the operating system independence of the sed1374, make it the ideal solution for a wide variety of applications.
page 10 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 2 features 2.1 integrated frame buffer ? embedded 40k byte sram display buffer. 2.2 cpu interface ? direct support of the following interfaces: hitachi sh-3. hitachi sh-4. motorola m68k. mpu bus interface using wait# signal. ? direct memory mapping of internal registers. ? single level cpu write buffer. ? registers are mapped into upper 32 bytes of 64k byte address space. ? the complete 40k byte frame buffer is directly and contiguously available through the 16-bit address bus. 2.3 display support ? 4/8-bit monochrome lcd interface. ? 4/8-bit color lcd interface. ? single-panel, single-drive passive displays. ? dual-panel, dual-drive passive displays. ? active matrix tft / md-tfd interface ? register level support for el panels. ? example resolutions: 640x480 at a color depth of 1 bpp 640x240 at a color depth of 2 bpp 320x240 at a color depth of 4 bpp 240x160 at a color depth of 8 bpp
epson research and development page 11 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 2.4 display modes ? swivelview?: direct 90 hardware rotation of display image for portrait mode display. ? 1/2/4 bit-per-pixel (bpp), 2/4/16-level grayshade display. ? 1/2/4/8 bit-per-pixel, 2/4/16/256-level color display. ? up to 16 shades of gray by frm on monochrome passive lcd panels; a 16x4 look- up-table is used to map 1/2/4-bpp modes into these shades. ? 256 simultaneous of 4096 colors on color passive and active matrix lcd panels; three 16x4 look-up tables are used to map 1/2/4/8-bpp modes into these colors. ? split screen display for all landscape panel modes allows two different images to be simultaneously displayed. ? virtual display support (displays images larger than the panel size through the use of panning). 2.5 clock source ? maximum operating clock (clk) frequency of 25mhz. ? operating clock (clk) is derived from clki input. clk = clki or clk = clki/2 ? pixel clock (pclk) and memory clock (mclk) are derived from clk. 2.6 miscellaneous ? hardware/software video invert. ? software power save mode. ? hardware power save mode. ? lcd power-down sequencing. ? 5 general purpose input/output pins are available. ? gpio0 is available if hardware power save is not required. ? gpio[4:1] are available if upper lcd data pins (fpdat[11:8]) are not required for tft/md-tfd support or hardware video invert. ? io operates from 3.0 volts to 5.5 volts ? core operates from 3.0 volts to 3.6 volts. 2.7 package ? 80 pin qfp14 package.
page 12 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 3 typical system implementation diagrams . figure 3-1: typical system diagram (sh-4 bus) . figure 3-2: typical system diagram (sh-3 bus) sed1374 fpframe fpshift fpline drdy fpdat[7:0] clki oscillator fpframe fpshift fpline mod d[7:0] 8-bit lcd display sh-4 bus reset# we0# d[15:0] bs# rd/wr# rd# rdy# a[15:0] ckio we0# rd/wr# ab[15:0] db[15:0] we1# bs# rd# cs# bclk wait# reset# csn# we1# lcdpwr sed1374 fpframe fpshift fpline drdy fpdat[3:0] clki oscillator fpframe fpshift fpline mod d[3:0] 4-bit lcd display sh-3 bus reset# we0# d[15:0] bs# rd/wr# rd# wait# a[15:0] ckio we0# rd/wr# ab[15:0] db[15:0] we1# bs# rd# cs# bclk wait# reset# csn# we1# lcdpwr
epson research and development page 13 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 . figure 3-3: typical system diagram (m68k #1 bus) . figure 3-4: typical system diagram (m68k #2 bus) sed1374 fpframe fpshift fpline drdy fpdat[3:0] clki oscillator fpframe fpshift fpline mod d[3:0] 4-bit lcd display mc68000 bus reset# lds# d[15:0] as# r/w# dtack# a[15:1] clk ab0# rd/wr# ab[15:1] db[15:0] we1# bs# cs# bclk wait# reset# a[23:16] fc0, fc1, fc2 decoder uds# lcdpwr sed1374 fpframe fpshift fpline drdy fpdat[7:0] clki oscillator fpframe fpshift fpline mod d[7:0] 8-bit lcd display mc68030 bus reset# siz0 d[31:16] as# r/w# siz1 dsack1# a[15:0] clk we0# rd/wr# ab[15:0] db[15:0] we1# bs# rd# cs# bclk wait# reset# a[31:16] fc0, fc1, fc2 decoder ds# lcdpwr
page 14 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 . figure 3-5: typical system diagram (generic #1 bus) . figure 3-6: typical system diagram (generic #2 bus - e.g. isa bus) sed1374 fpframe fpshift fpline drdy fpdat[11:0] clki oscillator fpframe fpshift fpline drdy d[11:0] 12-bit tft display generic #1 bus reset# d[15:0] rd0# wait# a[15:0] bclk rd/wr# ab[15:0] db[15:0] we1# rd cs# bclk wait# reset# csn# we1# lcdpwr we0# we0# bs# rd1# sed1374 fpframe fpshift fpline drdy fpdat[8:0] clki oscillator fpframe fpshift fpline drdy d[8:0] 9-bit tft display isa bus reset sd[15:0] smemr# iochrdy sa[15:0] bclk ab[15:0] db[15:0] we1# rd# bclk wait# reset# lcdpwr we0# smemw# bs# decoder cs# sa[19:16] refresh sbhe#
epson research and development page 15 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 4 functional block diagram figure 4-1: system block diagram showing data paths 4.1 functional block descriptions 4.1.1 host interface the host interface provides the means for the cpu/mpu to communicate with the display memory and internal registers. 4.1.2 memory controller the memory controller arbitrates between cpu accesses and display refresh accesses. it also generates the necessary signals to control the sram frame buffer. 4.1.3 sequence controller the sequence controller controls data flow from the memory controller through the look- up table and to the lcd interface. it also generates memory addresses for display refresh accesses. lcd memory controller 20k x 16-bit sram lcd clocks power save register sequence controller look-up i/f generic mpu mc68k sh-3 host i/f bus clock memory clock pixel clock table sh-4
page 16 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 4.1.4 look-up table the look-up table contains three 16x4 look-up tables or palettes, one for each primary color. in monochrome mode only one of these look-up tables is used. 4.1.5 lcd interface the lcd interface performs frame rate modulation for passive lcd panels. it also generates the correct data format and timing control signals for various lcd and tft/md-tfd panels. 4.1.6 power save power save contains the power save mode circuitry.
epson research and development page 17 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 5 pins 5.1 pinout diagram figure 5-1: pinout diagram note package type: 80 pin surface mount qfp14 1234567891011121314151617181920 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 21 22 23 24 25 26 34 35 36 37 38 39 27 28 29 30 31 32 33 40 sed1374 iovdd db6 db5 db4 db3 db2 db0 db1 corevdd db8 drdy fpdat7 corevdd gpio0 ab3 vss ab4 ab5 ab6 ab11 ab14 fpdat11 fpdat10 fpdat9 vss fpshift iovdd fpdat5 fpdat4 fpdat3 fpdat2 fpdat1 fpdat0 fpline fpframe vss cnf2 db12 db9 db10 db11 db13 db14 db15 wait# vss rd/wr# we1# we0# rd# bs# cs# reset# ab0 ab1 ab2 corevdd corevdd lcdpwr ab9 ab10 vss ab8 vss fpdat8 fpdat6 testen cnf3 cnf1 cnf0 clki iovdd ab15 ab12 bclk ab13 vss ab7 cnf4 db7
page 18 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 5.2 pin description key: 5.2.1 host interface i=input o=output i/o = bi-directional (input/output) p = power pin c = cmos level input cd = cmos level input with pull down resistor (typical values of 100k w/180kw at 5v/3.3v respectively) cs = cmos level schmitt input cox = cmos output driver, x denotes driver type (1=3/-1.5ma, 2=6/-3ma, 3=12/-6ma) tsx = tri-state cmos output driver, x denotes driver type (1=3/-1.5ma, 2=6/-3ma, 3=12/-6ma) tsxd = tri-state cmos output driver with pull down resistor (typical values of 100k w/180kw at 5v/3.3v respectively), x denotes driver type (1=3/-1.5ma, 2=6/-3ma, 3=12/-6ma) cnx = cmos low-noise output driver, x denotes driver type (1=3/-1.5ma, 2=6/-3ma, 3=12/-6ma) pin names type pin # cell reset# state description ab0 i 70 cs input this pin has multiple functions. ? for sh-3/sh-4 mode, this pin inputs system address bit 0 (a0). ? for mc68k #1, this pin inputs the lower data strobe (lds#). ? for mc68k #2, this pin inputs system address bit 0 (a0). ? for generic #1, this pin inputs system address bit 0 (a0). ? for generic #2, this pin inputs system address bit 0 (a0). see host bus interface pin mapping for summary. ab[15:1] i 53, 54, 55, 56, 57, 58, 59, 62, 63, 64, 65, 66, 67, 68, 69 c input these pins input the system address bits 15 through 1 (a[15:1]). db[15:0] i/o 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19 c/ts2 high impedance these pins have multiple functions. ? for sh-3/sh-4 mode, these pins are connected to [d15:0]. ? for mc68k #1, these pins are connected to d[15:0]. ? for mc68k #2, these pins are connected to d[31:16] for a 32-bit device (e.g. mc68030) or d[15:0] for a 16-bit device (e.g. mc68340). ? for generic #1, these pins are connected to d[15:0]. ? for generic #2, these pins are connected to d[15:0]. see host bus interface pin mapping for summary.
epson research and development page 19 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 we0# i 77 cs input this pin has multiple functions. ? for sh-3/sh-4 mode, this pin inputs the write enable signal for the lower data byte (we0#). ? for mc68k #1, this pin must be tied to io v dd ? for mc68k #2, this pin inputs the bus size bit 0 (siz0). ? for generic #1, this pin inputs the write enable signal for the lower data byte (we0#). ? for generic #2, this pin inputs the write enable signal (we#) see host bus interface pin mapping for summary. we1# i 78 cs input this pin has multiple functions. ? for sh-3/sh-4 mode, this pin inputs the write enable signal for the upper data byte (we1#). ? for mc68k #1, this pin inputs the upper data strobe (uds#). ? for mc68k #2, this pin inputs the data strobe (ds#). ? for generic #1, this pin inputs the write enable signal for the upper data byte (we1#). ? for generic #2, this pin inputs the byte enable signal for the high data byte (bhe#). see host bus interface pin mapping for summary. cs# i 74 c input this pin inputs the chip select signal. bclk i 71 c input this pin inputs the system bus clock. bs# i 75 cs input this pin has multiple functions. ? for sh-3/sh-4 mode, this pin inputs the bus start signal (bs#). ? for mc68k #1, this pin inputs the address strobe (as#). ? for mc68k #2, this pin inputs the address strobe (as#). ? for generic #1, this pin must be tied to v ss . ? for generic #2, this pin must be tied to io v dd . see host bus interface pin mapping for summary. rd/wr# i 79 cs input this pin has multiple functions. ? for sh-3/sh-4 mode, this pin inputs the rd/wr# signal. the sed1374 needs this signal for early decode of the bus cycle. ? for mc68k #1, this pin inputs the r/w# signal. ? for mc68k #2, this pin inputs the r/w# signal. ? for generic #1, this pin inputs the read command for the upper data byte (rd1#). ? for generic #2, this pin must be tied to io v dd . see host bus interface pin mapping for summary. pin names type pin # cell reset# state description
page 20 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 5.2.2 lcd interface rd# i 76 cs input this pin has multiple functions. ? for sh-3/sh-4 mode, this pin inputs the read signal (rd#). ? for mc68k #1, this pin must be tied to io v dd . ? for mc68k #2, this pin inputs the bus size bit 1 (siz1). ? for generic #1, this pin inputs the read command for the lower data byte (rd0#). ? for generic #2, this pin inputs the read command (rd#). see host bus interface pin mapping for summary. wait# o 2 ts2 high impedance this pin has multiple functions. ? for sh-3 mode, this pin outputs the wait request signal (wait#). ? for sh-4 mode, this pin outputs the device ready signal (rdy#). ? for mc68k #1, this pin outputs the data transfer acknowledge signal (dtack#). ? for mc68k #2, this pin outputs the data transfer and size acknowledge bit 1 (dsack1#). ? for generic #1, this pin outputs the wait signal (wait#). ? for generic #2, this pin outputs the wait signal (wait#). see host bus interface pin mapping for summary. reset# i 73 cs 0 active low input to set all internal registers to the default state and to force all signals to their inactive states. pin name type pin # cell reset# state description fpdat[7:0] o 30, 31, 32, 33, 34, 35, 36, 37 cn3 0 panel data fpdat[10:8] o, i/o 24, 25, 26 cn3 input these pins have multiple functions. ? panel data bits [10:8] for tft/md-tfd panels. ? general purpose input/output pins gpio[3:1]. these pins should be connected to io v dd when unused. see lcd interface pin mapping for summary. fpdat11 o, i/o 23 cn3 input this pin has multiple functions. ? panel data bit 11 for tft/md-tfd panels. ? general purpose input/output pin gpio4. ? inverse video select pin. this pin should be connected to io v dd when unused. see lcd interface pin mapping for summary. fpframe o 39 cn3 0 frame pulse pin names type pin # cell reset# state description
epson research and development page 21 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 5.2.3 clock input 5.2.4 miscellaneous 5.2.5 power supply fpline o 38 cn3 0 line pulse fpshift o 28 cn3 0 shift clock lcdpwr o 43 co1 0 if cnf4 = 1 1 if cnf4 = 0 lcd power control drdy o 42 cn3 0 this pin has multiple functions. ? tft/md-tfd display enable (drdy). ? lcd backplane bias (mod). ? second shift clock (fpshift2). see lcd interface pin mapping for summary. pin name type pin # driver description clki i 51 c input clock pin name type pin # cell reset# state description cnf[4:0] i 45, 46, 47, 48, 49 c as set by hardware these inputs are used to configure the sed1374 - see summary of configuration options . must be connected directly to io v dd or v ss . gpio0 i/o, i 22 cs/ ts1 input this pin has multiple functions - see reg[03h] bit 2. ? general purpose input/output pin. ? hardware power save. testen i 44 cd high impedance test enable input. this input must be connected to v ss . pin name type pin # driver description corevdd p 1, 21, 41, 61 pcore v dd iovdd p 10, 29, 52 p io v dd vss p 20, 27, 40, 50, 60, 72, 80 p common v ss pin name type pin # cell reset# state description
page 22 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 5.3 summary of configuration options 5.4 host bus interface pin mapping table 5-1: summary of power on/reset options configuration pin power on/reset state 10 cnf4 active high (on) lcdpwr polarity active low (on) lcdpwr polarity cnf3 big endian little endian cnf[2:0] select host bus interface as follows: cnf2 cnf1 cnf0 bs# host bus 0 0 0 x sh-4 interface 0 0 1 x sh-3 interface 0 1 0 x reserved 0 1 1 x mc68k #1, 16-bit 1 0 0 x reserved 1 0 1 x mc68k #2, 16-bit 1100reserved 1101reserved 1110generic #1, 16-bit 1111generic #2, 16-bit table 5-2: host bus interface pin mapping sed1374 pin names sh-3 sh-4 mc68k #1 mc68k #2 generic #1 generic #2 ab[15:1] a[15:1] a[15:1] a[15:1] a[15:1] a[15:1] a[15:1] ab0 a0 a0 lds# a0 a0 a0 db[15:0] d[15:0] d[15:0] d[15:0] d[31:16] d[15:0] d[15:0] we1# we1# we1# uds# ds# we1# bhe# cs# csn# csn# external decode external decode external decode external decode bclk ckio ckio clk clk bclk bclk bs# bs# bs# as# as# connect to v ss connect to io v dd rd/wr# rd/wr# rd/wr# r/w# r/w# rd1# connect to io v dd rd# rd# rd# connect to io v dd siz1 rd0# rd# we0# we0# we0# connect to io v dd siz0 we0# we# wait# wait# rdy# dtack# dsack1# wait# wait# reset# reset# reset# reset# reset# reset# reset#
epson research and development page 23 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 5.5 lcd interface pin mapping note 1. unused gpio pins must be connected to io v dd . 2. hardware video invert is enabled on fpdat11 by reg[02h] bit 1. table 5-3: lcd interface pin mapping sed1374 pin name monochrome passive panel color passive panel color tft/md-tfd 4-bit single 8-bit single 8-bit dual 4-bit single 8-bit single format 1 8-bit single format 2 8-bit dual 9-bit 12-bit fpframe fpframe fpline fpline fpshift fpshift drdy mod mod mod mod fpshift2 mod mod drdy fpdat0 driven 0 d0 ld0 driven 0 d0 d0 ld0 r2 r3 fpdat1 driven 0 d1 ld1 driven 0 d1 d1 ld1 r1 r2 fpdat2 driven 0 d2 ld2 driven 0 d2 d2 ld2 r0 r1 fpdat3 driven 0 d3 ld3 driven 0 d3 d3 ld3 g2 g3 fpdat4 d0 d4 ud0 d0 d4 d4 ud0 g1 g2 fpdat5 d1 d5 ud1 d1 d5 d5 ud1 g0 g1 fpdat6 d2 d6 ud2 d2 d6 d6 ud2 b2 b3 fpdat7 d3 d7 ud3 d3 d7 d7 ud3 b1 b2 fpdat8 gpio1 gpio1 gpio1 gpio1 gpio1 gpio1 gpio1 b0 b1 fpdat9 gpio2 gpio2 gpio2 gpio2 gpio2 gpio2 gpio2 gpio2 r0 fpdat10 gpio3 gpio3 gpio3 gpio3 gpio3 gpio3 gpio3 gpio3 g0 fpdat11 gpio4/ hw video invert gpio4/ hw video invert gpio4/ hw video invert gpio4/ hw video invert gpio4/ hw video invert gpio4/ hw video invert gpio4/ hw video invert gpio4 b0
page 24 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 6 d.c. characteristics table 6-1: absolute maximum ratings symbol parameter rating units core v dd supply voltage v ss - 0.3 to 4.6 v io v dd supply voltage v ss - 0.3 to 6.0 v v in input voltage v ss - 0.3 to io v dd + 0.5 v v out output voltage v ss - 0.3 to io v dd + 0.5 v t stg storage temperature -65 to 150 c t sol solder temperature/time 260 for 10 sec. max at lead c table 6-2: recommended operating conditions symbol parameter condition min typ max units core v dd supply voltage v ss = 0 v 3.0 3.3 3.6 v io v dd supply voltage v ss = 0 v 3.0 3.3/5.0 5.5 v v in input voltage v ss io v dd v t opr operating temperature -40 25 85 c table 6-3: input specifications symbol parameter condition min typ max units v il low level input voltage cmos inputs io v dd = 3.3 5.0 0.8 1.0 v v v ih high level input voltage cmos inputs io v dd = 3.3 5.0 2.0 3.5 v v v t+ positive-going threshold cmos schmitt inputs io v dd = 3.3 5.0 1.1 2.0 2.4 4.0 v v v t- negative-going threshold cmos schmitt inputs io v dd = 3.3 5.0 0.6 0.8 1.8 3.1 v v i iz input leakage current v dd = max v ih = v dd v il = v ss -1 1 m a c in input pin capacitance 10 pf hr pd pull down resistance v i = v dd 50 100 300 k w
epson research and development page 25 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 table 6-4: output specifications symbol parameter condition min typ max units v ol low level output voltage type 1 - ts1, co1 type 2- ts2, co2 type 3 - ts3, co3 i ol = 3ma i ol = 6ma i ol = 12ma 0.4 v v oh high level output voltage type 1 - ts1, co1 type 2- ts2, co2 type 3 - ts3, co3 i ol = -1.5 ma i ol = -3 ma i ol = -6 ma io v dd - 0.4 v i oz output leakage current v dd = max v oh = v dd v ol = v ss -1 1 m a c out output pin capacitance 10 pf c bid bidirectional pin capacitance 10 pf
page 26 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 7 a.c. characteristics conditions: io v dd = 3.3v 10% or io v dd = 5v 10% t a = -40 c to 85 c t rise and t fall for all inputs must be < 5 nsec (10% ~ 90%) c l = 60pf (bus/mpu interface) c l = 60pf (lcd panel interface) 7.1 bus interface timing 7.1.1 sh-4 interface timing figure 7-1: sh-4 timing note the sh-4 wait state control register for the area in which the sed1374 resides must be set to a non-zero value. the sh-4 read-to-write cycle transition must be set to a non-zero value (with ref- erence to busclk). t ckio t2 t3 t4 t10 t11 t16 t5 t6 t7 t8 t9 t12 t17 t15 ckio a[16:0] csn# rd/wr# rd# d[15:0] bs# rdy# wen# d[15:0] valid (write) (read) t13 t14
epson research and development page 27 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 note ckio may be turned off (held low) between accesses - see section 13.5, turning off bclk between accesses on page 86 table 7-1: sh-4 timing symbol parameter min max units f ckio bus clock frequency 050mhz t ckio bus clock period 1/f ckio t2 clock pulse width high 17 ns t3 clock pulse width low 16 ns t4 a[15:0], rd/wr# setup to ckio 0ns t5 a[15:0], rd/wr# hold from cs# 0ns t6 bs# setup 5ns t7 bs# hold 5ns t8 csn# setup 0ns t9 falling edge rd# to db[15:0] driven 25 ns t10 rising edge csn# to rdy# high impedance t1 ns t11 falling edge csn# to rdy# driven 20 ns t12 ckio to rdy# low 20 ns t13 rising edge csn# to rdy# high 20 ns t14 db[15:0] setup to 2 nd ckio after bs# (write cycle) 0ns t15 db[15:0] hold (write cycle) 0ns t16 db[15:0] valid to rdy# falling edge setup time (read cycle) 0ns t17 rising edge rd# to db[15:0] high impedance (read cycle) 10 ns
page 28 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 7.1.2 sh-3 interface timing figure 7-2: sh-3 bus timing note the sh-3 wait state control register for the area in which the sed1374 resides must be set to a non-zero value. t ckio t2 t3 t4 t10 t11 t15 t5 t6 t7 t8 t9 t12 t16 t13 t14 ckio a[16:0], m/r# csn# rd/wr# rd# d[15:0] bs# wait# wen# d[15:0] hi-z hi-z hi-z hi-z hi-z hi-z valid (write) (read)
epson research and development page 29 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 note ckio may be turned off (held low) between accesses - see section 13.5, turning off bclk between accesses on page 86 a one software wait state required table 7-2: sh-3 bus timing symbol parameter min max a units f ckio bus clock frequency 050mhz t ckio bus clock period 1/f ckio t2 clock pulse width high 17 ns t3 clock pulse width low 16 ns t4 a[15:0], rd/wr# setup to ckio 0ns t5 a[15:0], rd/wr# hold from cs# 0ns t6 bs# setup 5ns t7 bs# hold 5ns t8 csn# setup 0ns t9 falling edge rd# to db[15:0] driven 25 ns t10 rising edge csn# to wait# high impedance 10 ns t11 falling edge csn# to wait# driven 15 ns t12 ckio to wait# delay 20 ns t13 db[15:0] setup to 2 nd ckio after bs# (write cycle) 0ns t14 db[15:0] hold from rising edge of wen# (write cycle) 0ns t15 db[15:0] valid to rdy# falling edge setup time (read cycle) 0ns t16 rising edge rd# to db[15:0] high impedance (read cycle) 10 ns
page 30 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 7.1.3 motorola m68k #1 interface timing figure 7-3: m68k #1 bus timing (mc68000) note clk may be turned off (held low) between accesses - see section 13.5, turning off bclk between accesses on page 86 table 7-3: m68k #1 bus timing (mc68000) symbol parameter min max units f clk bus clock frequency 0 33 mhz t clk bus clock period 1/f clk t1 a[15:1], cs# valid before as# falling edge 0 ns t2 a[15:1], cs# hold from as# rising edge 0 ns t3 as# low to dtack# driven high 16 ns t4 clk to dtack# low 15 ns t5 as# high to dtack# high 20 ns t6 as# high to dtack# high impedance t clk t7 uds#, lds# falling edge to d[15:0] valid (write cycle) t clk t8 d[15:0] hold from as# rising edge (write cycle) 0 ns t9 uds#, lds# falling edge to d[15:0] driven (read cycle) 15 ns t10 d[15:0] valid to dtack# falling edge (read cycle) 0 ns t11 uds#, lds# rising edge to d[15:0] high impedance 10 ns t3 a[15:1] as# uds#, lds# valid valid t1 t8 t2 t7 r/w# hi-z hi-z invalid t5 t4 dtack# hi-z hi-z clk t6 t clk cs# t9 t10 hi-z valid hi-z d[15:0] d[15:0] t11 (write (read)
epson research and development page 31 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 7.1.4 motorola m68k #2 interface timing figure 7-4: m68k #2 timing (mc68030) note clk may be turned off (held low) between accesses - see section 13.5, turning off bclk between accesses on page 86 table 7-4: m68k #2 timing (mc68030) symbol parameter min max units f clk bus clock frequency 0 33 mhz t clk bus clock period 1/f clk t1 a[15:0], cs#, siz0, siz1 valid before as# falling edge 0 ns t2 a[15:0], cs#, siz0, siz1 hold from as#, ds# rising edge 0 ns t3 as# low to dsack1# driven high 22 ns t4 clk to dsack1# low 18 ns t5 as# high to dsack1# high 26 ns t6 as# high to dsack1# high impedance t clk t7 ds# falling edge to d[31:16] valid (write cycle) t clk / 2 t8 as#, ds# rising edge to d[31:16] invalid (write cycle) 0 ns t9 d[31:16] valid to dsack1# low (read cycle) 0 ns t10 as#, ds# rising edge to d[31:16] high impedance 20 ns a[15:0] as# ds# valid t1 t8 t2 t7 r/w# hi-z cs# siz0, siz1 clk t5 t3 t4 dsack1# hi-z hi-z t6 t clk t9 valid hi-z hi-z d[31:16] d[31:16] valid hi-z t10 (write) (read)
page 32 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 7.1.5 generic #1 interface timing figure 7-5: generic #1 timing note bclk may be turned off (held low) between accesses - see section 13.5, turning off bclk between accesses on page 86 table 7-5: generic #1 timing symbol parameter min max units f bclk bus clock frequency 0 50 mhz t bclk bus clock period 1/f bclk mhz t1 a[15:0], cs# valid to we0#, we1# low (write cycle) or rd0#, rd1# low (read cycle) 0ns t2 we0#, we1# high (write cycle) or rd0#, rd1# high (read cycle) to a[15:0], cs# invalid 0ns t3 we0#, we1# low to d[15:0] valid (write cycle) t bclk t4 rd0#, rd1# low to d[15:0] driven (read cycle) 17 ns t5 we0#, we1# high to d[15:0] invalid (write cycle) 0 ns t6 d[15:0] valid to wait# high (read cycle) 0 ns t7 rd0#, rd1# high to d[15:0] high impedance (read cycle) 10 ns t8 we0#, we1# low (write cycle) or rd0#, rd1# low (read cycle) to wait# driven low 16 ns t9 bclk to wait# high 16 ns t10 we0#, we1# high (write cycle) or rd0#, rd1# high (read cycle) to wait# high impedance 11 ns t8 t5 t9 t3 t1 t10 bclk a[15:0] cs# we0#,we1# wait# valid t2 hi-z hi-z hi-z valid t bclk t6 t7 valid hi-z hi-z d[15:0] d[15:0] t4 rd0#, rd1# (write) (read)
epson research and development page 33 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 7.1.6 generic #2 interface timing figure 7-6: generic #2 timing note bclk may be turned off (held low) between accesses - see section 13.5, turning off bclk between accesses on page 86 table 7-6: generic #2 timing symbol parameter min max units f bclk bus clock frequency 0 50 mhz t bclk bus clock period 1/f bclk t1 a[15:0], bhe#, cs# valid to we#, rd# low 0 ns t2 we#, rd# high to a[15:0], bhe#, cs# invalid 0 ns t3 we# low to d[15:0] valid (write cycle) t bclk t4 we# high to d[15:0] invalid (write cycle) 0 ns t5 rd# low to d[15:0] driven (read cycle) 16 ns t6 d[15:0] valid to wait# high (read cycle) 0 ns t7 rd# high to d[15:0] high impedance (read cycle) 10 ns t8 we#, rd# low to wait# driven low 14 ns t9 bclk to wait# high 16 ns t10 we#, rd# high to wait# high impedance 11 ns t8 t4 t9 t3 t1 t10 bclk a[15:0] cs# we#,rd# wait# valid t2 hi-z hi-z hi-z valid t bclk t6 t7 valid hi-z hi-z d[15:0] d[15:0] t5 bhe# (write) (read)
page 34 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 7.2 clock input requirements figure 7-7: clock input requirements note when clki is > 25mhz it must be divided by 2 (reg[02h] bit 4 = 1). table 7-7: clock input requirements symbol parameter min max units f clki input clock frequency (clki) 0 50 mhz t clki input clock period (clki) 1/f clki t pwh input clock pulse width high (clki) 8 ns t pwl input clock pulse width low (clki) 8 ns t f input clock fall time (10% - 90%) 5 ns t r input clock rise time (10% - 90%) 5 ns t pwl t pwh t f clock input waveform t r t clki v ih v il 10% 90%
epson research and development page 35 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 7.3 display interface 7.3.1 power on/reset timing figure 7-8: lcd panel power on/reset timing note where t fpframe is the period of fpframe and t pclk is the period of the pixel clock. symbol parameter min typ max units t1 reg[03h] to fpline, fpframe, fpshift, fpdat, drdy active t fpframe ns t2 fpline, fpframe, fpshift, fpdat, drdy active to lcdpwr 0 frames reset# reg[03h] bits [1:0] lcdpwr fpline fpshift fpdat drdy t1 t2 00 11 fpframe lcdpwr (cnf4 = 1) (cnf4 = 0) active
page 36 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 7.3.2 power down/up timing figure 7-9: power down/up timing table 7-8: power down/up timing symbol parameter min typ max units t1 hw power save active to fpline, fpframe, fpshift, fpdat, drdy inactive - lcdpwr override = 1 1frame t2 hw power save inactive to fpline, fpframe, fpshift, fpdat, drdy active - lcdpwr override = 1 1frame t3 hw power save active to fpline, fpframe, fpshift, fpdat, drdy inactive - lcdpwr override = 0 1frame t4 lcdpwr low to fpline, fpframe, fpshift, fpdat, drdy inactive - lcdpwr override = 0 127 frame t5 hw power save inactive to fpline, fpframe, fpshift, fpdat, drdy, lcdpwr active - lcdpwr override = 0 0frame t6 lcdpwr override active (1) to lcdpwr inactive 1 frame t7 lcdpwr override inactive (1) to lcdpwr active 1 frame t4 t3 t1 active inactive active inactive active lcdpwr override (reg[03h] bit 3) hw power save fp signals lcdpwr t2 software power save 11 00 11 00 11 t5 t6 t7 (polarity set by cnf4) reg[03h] bits [1:0] or active active active inactive inactive
epson research and development page 37 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 7.3.3 single monochrome 4-bit panel timing figure 7-10: single monochrome 4-bit panel timing vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = reg[0ah] bits 5-0 lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = (reg[08h] + 4) x 8ts vdp fpline fpshift line1 line2 line3 line4 line239 line240 fpframe line1 line2 fpline drdy (mod) 1-2 1-6 1-318 1-3 1-7 1-319 1-4 1-8 1-320 1-1 1-5 1-317 drdy (mod) vndp hdp hndp * diagram drawn with 2 fpline vertical blank period example timing for a 320x240 panel fpdat[7:4] fpdat6 fpdat5 fpdat4 fpdat7 for this timing diagram mask fpshift, reg[01h] bit 3, is set to 1
page 38 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 figure 7-11: single monochrome 4-bit panel a.c. timing 1. ts = pixel clock period 2. t1 min = t3 min - 9ts 3. t3 min = [((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0) + 4) x 8]ts 4. t6 min = [(reg[08h] bits 4-0) x 8 + 2]ts 5. t7 min = [(reg[08h] bits 4-0) x 8 + 11]ts symbol parameter min typ max units t1 frame pulse setup to line pulse falling edge note 2 (note 1) t2 frame pulse hold from line pulse falling edge 9 ts t3 line pulse period note 3 t4 line pulse pulse width 9 ts t5 mod delay from line pulse rising edge 1 ts t6 shift pulse falling edge to line pulse rising edge note 4 t7 shift pulse falling edge to line pulse falling edge note 5 t8 line pulse falling edge to shift pulse falling edge t14 + 2 ts t9 shift pulse period 4 ts t10 shift pulse pulse width low 2 ts t11 shift pulse pulse width high 2 ts t12 fpdat[7:4] setup to shift pulse falling edge 2 ts t13 fpdat[7:4] hold to shift pulse falling edge 2 ts t14 line pulse falling edge to shift pulse rising edge 23 ts frame pulse line pulse drdy (mod) sync timing line pulse shift pulse fpdat[7:4] data timing t12 t13 t14 t10 t11 t5 t1 t2 t3 t4 t8 t9 12 t7 t6 note: for this timing diagram mask fpshift, reg[01h] bit 3, is set to 1
epson research and development page 39 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 7.3.4 single monochrome 8-bit panel timing figure 7-12: single monochrome 8-bit panel timing vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = reg[0ah] bits 5-0 lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = (reg[08h] + 4) x 8ts hndp vdp fpline fpshift line1 line2 line3 line4 line479 line480 fpframe line1 line2 fpline drdy (mod) 1-2 1-10 1-634 1-3 1-11 1-635 1-4 1-12 1-636 1-5 1-13 1-637 1-6 1-14 1-638 1-7 1-15 1-639 1-8 1-16 1-640 1-1 1-9 1-633 drdy (mod) vndp hdp * diagram drawn with 2 fpline vertical blank period example timing for a 640x480 panel fpdat[7:0] fpdat6 fpdat5 fpdat4 fpdat7 fpdat2 fpdat1 fpdat0 fpdat3 for this timing diagram mask fpshift, reg[01h] bit 3, is set to 1
page 40 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 figure 7-13: single monochrome 8-bit panel a.c. timing 1. ts = pixel clock period 2. t1 min = t3 min - 9ts 3. t3 min = [((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0) + 4) x 8]ts 4. t6 min = [(reg[08h] bits 4-0) x 8 + 4]ts 5. t7 min =[(reg[08h] bits 4-0) x 8 + 13]ts symbol parameter min typ max units t1 frame pulse setup to line pulse falling edge note 2 (note 1) t2 frame pulse hold from line pulse falling edge 9 ts t3 line pulse period note 3 t4 line pulse pulse width 9 ts t5 mod delay from line pulse rising edge 1 ts t6 shift pulse falling edge to line pulse rising edge note 4 t7 shift pulse falling edge to line pulse falling edge note 5 t8 line pulse falling edge to shift pulse falling edge t14 + 4 ts t9 shift pulse period 8 ts t10 shift pulse pulse width low 4 ts t11 shift pulse pulse width high 4 ts t12 fpdat[7:0] setup to shift pulse falling edge 4 ts t13 fpdat[7:0] hold to shift pulse falling edge 4 ts t14 line pulse falling edge to shift pulse rising edge 23 ts t12 t13 frame pulse line pulse mod sync timing line pulse shift pulse fpdat[7:0] data timing t5 t1 t2 t3 t4 t14 t8 t9 t10 t11 12 t7 t6 note: for this timing diagram mask fpshift, reg[01h] bit 3, is set to 1
epson research and development page 41 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 7.3.5 single color 4-bit panel timing figure 7-14: single color 4-bit panel timing vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = reg[0ah] bits 5-0 lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = (reg[08h] + 4) x 8ts vdp fpline fpdat[7:4] line1 line2 line3 line4 line479 line480 fpframe line1 line2 fpline drdy (mod) fpdat6 fpdat5 fpdat4 fpdat7 drdy (mod) vndp 1-r1 1-g1 1-b1 1-r2 1-g2 1-b2 1-r3 1-g3 1-b3 1-r4 1-g4 1-b4 1-b319 1-r320 1-g320 1-b320 hdp hndp * diagram drawn with 2 fpline vertical blank period example timing for a 640x480 panel fpshift
page 42 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 figure 7-15: single color 4-bit panel a.c. timing 1. ts = pixel clock period 2. t1 min = t3 min - 9ts 3. t3 min = [((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0) + 4) x 8]ts 4. t6 min = [(reg[08h] bits 4-0) x 8 + 0.5]ts 5. t7 min = [(reg[08h] bits 4-0) x 8 + 9.5]ts symbol parameter min typ max units t1 frame pulse setup to line pulse falling edge note 2 (note 1) t2 frame pulse hold from line pulse falling edge 9 ts t3 line pulse period note 3 t4 line pulse pulse width 9 ts t5 mod delay from line pulse rising edge 1 ts t6 shift pulse falling edge to line pulse rising edge note 4 t7 shift pulse falling edge to line pulse falling edge note 5 t8 line pulse falling edge to shift pulse falling edge t14 + 0.5 ts t9 shift pulse period 1 ts t10 shift pulse pulse width low 0.5 ts t11 shift pulse pulse width high 0.5 ts t12 fpdat[7:4] setup to shift pulse falling edge 0.5 ts t13 fpdat[7:4] hold to shift pulse falling edge 0.5 ts t14 line pulse falling edge to shift pulse rising edge 23 ts frame pulse line pulse drdy (mod) sync timing line pulse shift pulse fpdat[7:4] data timing t5 t14 t1 t2 t3 t4 t8 t9 t10 t11 t12 t13 12 t7 t6
epson research and development page 43 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 7.3.6 single color 8-bit panel timing (format 1) figure 7-16: single color 8-bit panel timing (format 1) vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = reg[0ah] bits 5-0 lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = (reg[08h] + 4) x 8ts vdp fpline fpshift 2 line1 line2 line3 line4 line479 line480 fpframe line1 line2 fpline fpdat6 fpdat5 fpdat4 fpdat3 fpdat2 fpdat1 fpdat0 fpdat7 hdp vndp 1-r1 1-b1 1-g2 1-r3 1-b3 1-g4 1-r5 1-b5 1-g1 1-r2 1-b2 1-g3 1-r4 1-b4 1-g5 1-r6 1-g6 1-r7 1-b7 1-g8 1-r9 1-b9 1-g10 1-r11 1-b6 1-g7 1-r8 1-b8 1-g9 1-r10 1-b10 1-g11 1-r636 1-b636 1-g637 1-r638 1-b638 1-g639 1-r640 1-b640 fpshift 1-b11 1-g12 1-r13 1-b13 1-g14 1-r15 1-b15 1-g16 1-r12 1-b12 1-g13 1-r14 1-b14 1-g15 1-r16 1-b16 hndp * diagram drawn with 2 fpline vertical blank period example timing for a 640x480 panel fpdat[7:0]
page 44 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 figure 7-17: single color 8-bit panel a.c. timing (format 1) 1. ts = pixel clock period 2. t1 min = t3 min - 9ts 3. t3 min = [((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0) + 4) x 8]ts 4. t6a min = [(reg[08h] bits 4-0) x 8 + t13 - t10]ts 5. t6b min = [(reg[08h] bits 4-0) x 8 + t13]ts 6. t7a min = [(reg[08h] bits 4-0) x 8 + 11]ts 7. t7b min = [(reg[08h] bits 4-0) x 8 + 11] - t10]ts symbol parameter min typ max units t1 frame pulse setup to line pulse falling edge note 2 (note 1) t2 frame pulse hold from line pulse falling edge 9 ts t3 line pulse period note 3 t4 line pulse pulse width 9 ts t6a shift pulse falling edge to line pulse rising edge note 4 t6b shift pulse 2 falling edge to line pulse rising edge note 5 t7a shift pulse 2 falling edge to line pulse falling edge note 6 t7b shift pulse falling edge to line pulse falling edge note 7 t8 line pulse falling edge to shift pulse rising, shift pulse 2 falling edge t14 + 2 ts t9 shift pulse 2, shift pulse period 4 ts t10 shift pulse 2, shift pulse pulse width low 2 ts t11 shift pulse 2, shift pulse pulse width high 2 ts t12 fpdat[7:0] setup to shift pulse 2, shift pulse falling edge 1 ts t13 fpdat[7:0] hold to shift pulse 2, shift pulse falling edge 1 ts t14 line pulse falling edge to shift pulse rising edge 23 ts frame pulse line pulse sync timing line pulse shift pulse 2 fpdat[7:0] data timing t14 t1 t2 t3 t4 t8 t9 t10 t11 t12 t13 12 t7a t6b shift pulse t6a t7b t12 t13
epson research and development page 45 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 7.3.7 single color 8-bit panel timing (format 2) figure 7-18: single color 8-bit panel timing (format 2) vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = reg[0ah] bits 5-0 lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = (reg[08h] + 4) x 8ts vdp fpline line1 line2 line3 line4 line479 line480 fpframe line1 line2 fpline drdy (mod) fpdat6 fpdat5 fpdat4 fpdat3 fpdat2 fpdat1 fpdat0 fpdat7 drdy (mod) vndp 1-r1 1-g1 1-b1 1-r2 1-g2 1-b 2 1-r3 1-g3 1-b3 1-r4 1-g4 1-b4 1-r5 1-g5 1-b 5 1-r6 1-g6 1-b6 1-r7 1-g7 1-b7 1-r8 1-g8 1-b8 1-g638 1-b638 1-r639 1-g639 1-b639 1-r640 1-g640 1-b640 hdp hndp * diagram drawn with 2 fpline vertical blank period example timing for a 640x480 panel fpshift fpdat[7:0]
page 46 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 figure 7-19: single color 8-bit panel a.c. timing (format 2) 1. ts = pixel clock period 2. t1 min = t3 min - 9ts 3. t3 min = [((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0) + 4) x 8]ts 4. t6 min = [(reg[08h] bits 4-0) x 8 + 1]ts 5. t7 min = [(reg[08h] bits 4-0) x 8 + 10]ts symbol parameter min typ max units t1 frame pulse setup to line pulse falling edge note 2 (note 1) t2 frame pulse hold from line pulse falling edge 9 ts t3 line pulse period note 3 t4 line pulse pulse width 9 ts t5 mod delay from line pulse rising edge 1 ts t6 shift pulse falling edge to line pulse rising edge note 4 t7 shift pulse falling edge to line pulse falling edge note 5 t8 line pulse falling edge to shift pulse falling edge t14 + 2 ts t9 shift pulse period 2 ts t10 shift pulse pulse width low 1 ts t11 shift pulse pulse width high 1 ts t12 fpdat[7:0] setup to shift pulse falling edge 1 ts t13 fpdat[7:0] hold to shift pulse falling edge 1 ts t14 line pulse falling edge to shift pulse rising edge 23 ts t14 t10 t11 t12 t13 data timing frame pulse t1 t2 t3 t5 t4 line pulse drdy (mod) sync timing line pulse shift pulse t8 t9 12 t7 t6 fpdat[7:0]
epson research and development page 47 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 7.3.8 dual monochrome 8-bit panel timing figure 7-20: dual monochrome 8-bit panel timing vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = reg[0ah] bits 5-0 lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = (reg[08h] + 4) x 8ts vdp fpline fpshift fpdat[7:0] fpframe fpline drdy (mod) fpdat6 1-2 1-6 1-638 fpdat5 1-3 1-7 1-639 fpdat4 1-4 1-8 1-640 fpdat3 241-1 241-5 241-637 fpdat2 241-638 fpdat1 241-639 fpdat0 241-640 fpdat7 1-1 1-5 1-637 hdp drdy (mod) 241-2 241-6 241-3 241-7 241-4 241-8 vndp hndp * diagram drawn with 2 fpline vertical blank period example timing for a 640x480 panel line 1/241 line 2/242 line 3/243 line 4/244 line 239/479 line 240/480 line 1/241 line 2/242
page 48 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 figure 7-21: dual monochrome 8-bit panel a.c. timing 1. ts = pixel clock period 2. t1 min = t3 min - 9ts 3. t3 min = [(((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0) + 4) x 8) x 2]ts 5. t6 min = [((reg[08h] bits 4-0) x 2)x 8 + 20]ts 6. t7 min = [((reg[08h] bits 4-0) x 2)x 8 + 29]ts symbol parameter min typ max units t1 frame pulse setup to line pulse falling edge note 2 (note 1) t2 frame pulse hold from line pulse falling edge 9 ts t3 line pulse period note 3 t4 line pulse pulse width 9 ts t5 mod delay from line pulse falling edge 1 ts t6 shift pulse falling edge to line pulse rising edge note 5 t7 shift pulse falling edge to line pulse falling edge note 6 t8 line pulse falling edge to shift pulse falling edge t14 + 4 ts t9 shift pulse period 8 ts t10 shift pulse pulse width low 4 ts t11 shift pulse pulse width high 4 ts t12 fpdat[7:0] setup to shift pulse falling edge 4 ts t13 fpdat[7:0] hold to shift pulse falling edge 4 ts t14 line pulse falling edge to shift pulse rising edge 39 ts t14 t10 t11 t12 t13 data timing frame pulse t1 t2 t3 t5 t4 line pulse drdy (mod) sync timing line pulse shift pulse t8 t9 12 t7 t6 fpdat[7:0]
epson research and development page 49 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 7.3.9 dual color 8-bit panel timing figure 7-22: dual color 8-bit panel timing vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = reg[0ah] bits 5-0 lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = (reg[08h] + 4) x 8ts vdp fpline fpframe fpline drdy (mod) drdy (mod) vndp 1-r1 1-g1 1-b1 1-r2 1-g2 1-b2 1-r3 1-g3 1-b3 1-r4 1-g4 1-b4 1-r5 1-g5 1-b5 1-r6 1-g6 1-b6 1-r7 1-g7 1-r8 1-g8 1-b8 1-b639 1-r640 1-g640 1-b640 241- b639 241- r640 241- g640 241- b640 241-r1 241-g1 241-b1 241-r2 241-g2 241-b2 241-r3 241-g3 241-b3 241-r4 241-g4 241-b4 241-r5 241-g5 241-b5 241-r6 241-g6 241-b6 241-r7 241-g7 241-b7 241-r8 241-g8 241-b8 1-b7 fpshift hdp hndp * diagram drawn with 2 fpline vertical blank period example timing for a 640x480 panel line 1/241 line 2/242 line 239/479 line 240/480 line 1/241 fpdat6 fpdat5 fpdat4 fpdat3 fpdat2 fpdat1 fpdat0 fpdat7 fpdat[7:0]
page 50 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 figure 7-23: dual color 8-bit panel a.c. timing 1. ts = pixel clock period 2. t1 min = t3 min - 9ts 3. t3 min = [(((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0) + 4) x 8) x 2]ts 5. t6 min = [((reg[08h] bits 4-0) x 2)x 8 + 17]ts 6. t7 min = [((reg[08h] bits 4-0) x 2)x 8 + 26]ts symbol parameter min typ max units t1 frame pulse setup to line pulse falling edge note 2 (note 1) t2 frame pulse hold from line pulse falling edge 9 ts t3 line pulse period note 3 t4 line pulse pulse width 9 ts t5 mod delay from line pulse falling edge 1 ts t6 shift pulse falling edge to line pulse rising edge note 5 t7 shift pulse falling edge to line pulse falling edge note 6 t8 line pulse falling edge to shift pulse falling edge t14 + 1 ts t9 shift pulse period 2 ts t10 shift pulse pulse width low 1 ts t11 shift pulse pulse width high 1 ts t12 fpdat[7:0] setup to shift pulse falling edge 1 ts t13 fpdat[7:0] hold to shift pulse falling edge 1 ts t14 line pulse falling edge to shift pulse rising edge 39 ts t14 t10 t11 t12 t13 data timing frame pulse t1 t2 t3 t5 t4 line pulse drdy (mod) sync timing line pulse shift pulse t8 t9 12 t7 t6 fpdat[7:0]
epson research and development page 51 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 7.3.10 9/12-bit tft/md-tfd panel timing figure 7-24: 12-bit tft/md-tfd panel timing vdp = vertical display period = (reg[06h] bits 1-0, reg[05h] bits 7-0) + 1 lines vndp = vertical non-display period = vndp1 + vndp2 = (reg[0ah] bits 5-0) lines vndp1 = vertical non-display period 1 = reg[09h] bits 5-0 lines vndp2 = vertical non-display period 2 = (reg[0ah] bits 5-0) - (reg[09ah] bits 5-0) lines hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8ts hndp = horizontal non-display period = hndp1 + hndp2 = (reg[08h] + 4) x 8ts hndp1= horizontal non-display period 1 = ((reg[07h] bits4-0) x 8) +16ts hndp2= horizontal non-display period 2 = (((reg[08h] bits4-0) - (reg[07h] bits 4-0)) x 8) +16ts fpframe fpline line1 line480 1-1 1-1 1-1 1-2 1-2 1-2 1-640 1-640 1-640 fpline fpshift drdy fpdat[11:0] vdp drdy note: drdy is used to indicate the first pixel example timing for 640x480 panel vndp 2 hdp hndp 2 hndp 1 line480 vndp 1 fpdat[9] fpdat[10] fpdat[11] fpdat[8:6] fpdat[4:3] fpdat[2:0]
page 52 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 figure 7-25: tft/md-tfd a.c. timing t12 t7 line pulse t8 t6 frame pulse drdy shift pulse 640 t9 line pulse 2 1 639 t13 t2 t3 t16 t4 t5 t14 t15 t1 t11 t10 note: drdy is used to indicate the first pixel t17 fpdat[11:0]
epson research and development page 53 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 1. ts = pixel clock period 2. t6min = [((reg[04h] bits 6-0)+1) x 8 + ((reg[08h] bits 4-0)+4) x 8] ts 3. t8 min = [((reg[06h] bits 1-0, reg[05h] bits 7-0)+1) + (reg[0ah] bits 6-0)] lines 4. t10min = [((reg[04h] bits 6-0)+1) x 8] ts 5. t14min = [((reg[04h] bits 6-0)+1) x 8] ts 6. t15min = [(reg[07h] bits 4-0) x 8 + 16] ts 7. t17min = [(reg[08h] bits 4-0) - (reg[07]) x 8 + 16] ts symbol parameter min typ max units t1 shift pulse period 1 (note 1) t2 shift pulse pulse width high 0.5 ts t3 shift pulse pulse width low 0.5 ts t4 data setup to shift pulse falling edge 0.5 ts t5 data hold from shift pulse falling edge 0.5 ts t6 line pulse cycle time note 2 t7 line pulse pulse width low 9 ts t8 frame pulse cycle time note 3 t9 frame pulse pulse width low 2t6 t10 horizontal display period note 4 t11 line pulse setup to shift pulse falling edge 0.5 ts t12 frame pulse falling edge to line pulse falling edge phase difference t6 - 18ts t13 drdy to shift pulse falling edge setup time 0.5 ts t14 drdy pulse width note 5 t15 drdy falling edge to line pulse falling edge note 6 t16 drdy hold from shift pulse falling edge 0.5 ts t17 line pulse falling edge to drdy active note 7 250
page 54 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 8 registers 8.1 register mapping the sed1374 registers are located in the upper 32 bytes of the 64k byte sed1374 address range. the registers are accessible when cs# = 0 and ab[15:0] are in the range ffe0h through ffffh. 8.2 register descriptions unless specified otherwise, all register bits are reset to 0 during power up. bits 7-2 product code this is a read-only register that indicates the product code of the chip. the product code is 000110. bits 1-0 revision code this is a read-only register that indicates the revision code of the chip. the revision code is 00. bit 7 tft/stn when this bit = 0, stn (passive) panel mode is selected. when this bit = 1, tft/md-tfd panel mode is selected. if tft/md-tfd panel mode is selected, dual/single (reg[01h] bit 6) and color/mono (reg[01h] bit5) are ignored. see table 8-1: panel data format below. bit 6 dual/single when this bit = 0, single lcd panel drive is selected. when this bit = 1, dual lcd panel drive is selected. see table 8-1: panel data format below. bit 5 color/mono when this bit = 0, monochrome lcd panel drive is selected. when this bit = 1, color lcd panel drive is selected. see table 8-1: panel data format below. reg[00h] revision code register address = ffe0h read only product code bit 5 product code bit 4 product code bit 3 product code bit 2 product code bit 1 product code bit 0 revision code bit 1 revision code bit 0 reg[01h] mode register 0 address = ffe1h read/write. tft/stn dual/single color/mono fpline polarity fpframe polarity mask fpshift data width bit 1 data width bit 0
epson research and development page 55 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 bit 4 fpline polarity this bit controls the polarity of fpline in tft/md-tfd mode (no effect in passive panel mode). when this bit = 0, fpline is active low. when this bit = 1, fpline is active high. bit 3 fpframe polarity this bit controls the polarity of fpframe in tft/md-tfd mode (no effect in passive panel mode). when this bit = 0, fpframe is active low. when this bit = 1, fpframe is active high. bit 2 mask fpshift fpshift is masked during non-display periods if either of the following two criteria is met: 1. color passive panel is selected (reg[01h] bit 5 = 1) 2. this bit (reg[01h] bit 2) = 1 bits 1-0 data width bits [1:0] these bits select the display data format. see table 8-1: panel data format below. table 8-1: panel data format tft/stn reg[01h] bit 7 color/mono reg[01h] bit 5 dual/single reg[01h] bit 6 data width bit 1 reg[01h] bit 1 data width bit 0 reg[01h] bit 0 function 0 0 0 0 0 mono single 4-bit passive lcd 1 mono single 8-bit passive lcd 1 0 reserved 1 reserved 1 0 0 reserved 1 mono dual 8-bit passive lcd 1 0 reserved 1 reserved 1 0 0 0 color single 4-bit passive lcd 1 color single 8-bit passive lcd format 1 1 0 reserved 1 color single 8-bit passive lcd format 2 1 0 0 reserved 1 color dual 8-bit passive lcd 1 0 reserved 1 reserved 1 x (dont care) 0 9-bit tft/md-tfd panel 1 12-bit tft/md-tfd panel
page 56 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 bits 7-6 bit-per-pixel bits [1:0] these bits select the color or gray-shade depth (display mode). bit 5 high performance (landscape modes only) when this bit = 0, the internal memory clock (mclk) is a divided-down version of the pixel clock (pclk). the denominator is dependent on the bit-per-pixel mode - see the table below. when this bit = 1, mclk is fixed to the same frequency as pclk for all bit-per-pixel modes. this provides a faster screen update performance in 1, 2, 4 bit-per-pixel modes, but also increases power consumption. this bit can be set to 1 just before a major screen update, then set back to 0 to save power after the update. this bit has no effect in swivel- view mode. refer to reg[1bh] swivelview mode register on page 68 for swivelview mode clock selection. reg[02h] mode register 1 address = ffe2h read/write. bit-per-pixel bit 1 bit-per-pixel bit 0 high performance input clock divide (clki/2) display blank frame repeat hardware video invert enable software video invert table 8-2: gray shade/color mode selection color/mono reg[01h] bit 6 bit-per-pixel bit 1 reg[02h] bit 7 bit-per-pixel bit 0 reg[02h] bit 6 display mode 0 0 0 2 gray shade 1 bit-per-pixel 1 4 gray shade 2 bit-per-pixel 1 0 16 gray shade 4 bit-per-pixel 1reserved 1 0 0 2 colors 1 bit-per-pixel 1 4 colors 2 bit-per-pixel 1 0 16 colors 4 bit-per-pixel 1 256 colors 8 bit-per-pixel table 8-3: high performance selection high performance bpp bit 1 bpp bit 0 display modes 0 0 0 mclk = pclk/8 1 bit-per-pixel 1 mclk = pclk/4 2 bit-per-pixel 1 0 mclk = pclk/2 4 bit-per-pixel 1 mclk = pclk 8 bit-per-pixel 1xxmclk = pclk
epson research and development page 57 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 bit 4 input clock divide when this bit = 0, the operating clock(clk) is same as the input clock (clki). when this bit = 1, clk = clki/2. in landscape mode pclk=clk and mclk is selected as per table 8-3: high perfor- mance selection. in swivelview mode mclk and pclk are derived from clk as shown in table 8-9: selection of pclk and mclk in swivelview mode, on page 69. bit 3 display blank this bit blanks the display image. when this bit = 1, the display is blanked (fpdat lines to the panel are driven low). when this bit = 0, the display is enabled. bit 2 frame repeat (el support) this feature is used to improve frame rate modulation of el panels. when this bit = 1, an internal frame counter runs from 0 to 3ffffh. when the frame counter rolls over, the modulated image pattern is repeated (every 1 hour when the frame rate is 72hz). when this bit = 0, the modulated image pattern is never repeated. bit 1 hardware video invert enable in passive panel modes (reg[01h] bit 7 = 0) fpdat11 is available as either gpio4 or hardware video invert. when this bit = 1, hardware video invert is enabled via the fpdat11 pin. when this bit = 0, fpdat11 operates as gpio4. see table 8-4: inverse video mode select options below. note video data is inverted after the look-up table. bit 0 software video invert when this bit = 1, inverse video mode is selected. when this bit = 0, standard video mode is selected. see table 8-4: inverse video mode select options below. note video data is inverted after the look-up table. table 8-4: inverse video mode select options hardware video invert enable software video invert (passive and active panels) fpdat11 (passive panels only) video data 00xnormal 0 1 x inverse 1x0normal 1 x 1 inverse
page 58 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 bit 7 look-up table bypass when the look-up table bypass bit = 0, the green look-up table is used for display data output in gray shade modes. when this bit = 1, the look-up table is bypassed for dis- play data output in gray shade modes (for power save purposes). see look-up table architecture on page 72. there is no effect on changing this bit in color modes. in color display mode the look-up table cannot be bypassed. bit 3 lcdpwr override this bit is used to override the panel on/off sequencing logic. when this bit = 0, lcdpwr and the panel interface signals are controlled by the sequencing logic. when this bit 1, lcdpwr is forced to off and the panel interface signals are forced low immediately upon entering power save mode. see section 7.3.2, power down/up timing on page 36 for further information. bit 2 hardware power save enable when this bit = 1 gpio0 is used as the hardware power save input pin. when this bit = 0 gpio0 operates normally. bits 1-0 software power save bits [1: 0] these bits select the power save mode as shown in the following table. reg[03h] mode register 2 address = ffe3h read/write look-up table bypass n/a n/a n/a lcdpwr override hardware power save enable software power save bit 1 software power save bit 0 table 8-5: hardware power save/gpio0 operation reset# state hardware power save enable reg[03h] bit 2 gpio0 config reg[18h] bit 0 gpio0 status/control reg[19h] bit 0 gpio0 operation 0x x x 1 0 0 reads pin status gpio0 input (high impedance) 1 0 1 0 gpio0 output = 0 1 0 1 1 gpio0 output = 1 11 x x hardware power save input (active high) table 8-6: software power save mode selection bit 1 bit 0 mode 0 0 software power save 0 1 reserved 1 0 reserved 1 1 normal operation
epson research and development page 59 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 refer to power save modes on page 84 for a complete description. bits 6-0 horizontal panel size bits [6:0] this register determines the horizontal resolution of the panel. this register must be pro- grammed with a value calculated as follows: this register must not be set to a value less than 03h. . reg[05h] bits 7-0 vertical panel size bits [9:0] reg[06h] bits 1-0 this 10-bit register determines the vertical resolution of the panel. this register must be programmed with a value calculated as follows: 3ffh is the maximum value of this register for a vertical resolution of 1024 lines. reg[04h] horizontal panel size register address = ffe4h read/write n/a horizontal panel size bit 6 horizontal panel size bit 5 horizontal panel size bit 4 horizontal panel size bit 3 horizontal panel size bit 2 horizontal panel size bit 1 horizontal panel size bit 0 reg[05h] vertical panel size register (lsb) address = ffe5h read/write vertical panel size bit 7 vertical panel size bit 6 vertical panel size bit 5 vertical panel size bit 4 vertical panel size bit 3 vertical panel size bit 2 vertical panel size bit 1 vertical panel size bit 0 reg[06h] vertical panel size register (msb) address = ffe6h read/write n/a n/a n/a n/a n/a n/a vertical panel size bit 9 vertical panel size bit 8 horizontalpanelsizeregister horizontalpanelresolution pixels () 8 ---------------------------------------------------------------------------------------------- ? ?? 1 C = verticalpanelsizeregister verticalpanelresolution lines () 1 C =
page 60 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 bits 4-0 fpline start position these bits are used in tft/md-tfd mode to specify the position of the fpline pulse. these bits specify the delay, in 8-pixel resolution, from the end of a line of display data (fpdat) to the leading edge of fpline. this register is effective in tft/md-tfd mode only (reg[01h] bit 7 = 1). this register is programmed as follows: the following constraint must be satisfied: bits 4-0 horizontal non-display period these bits specify the horizontal non-display period in 8-pixel resolution. bits 5-0 fpframe start position these bits are used in tft/md-tfd mode to specify the position of the fpframe pulse. these bits specify the number of lines between the last line of display data (fpdat) and the leading edge of fpframe. this register is effective in tft/md-tfd mode only (reg[01h] bit 7 = 1). the contents of this register must be greater than zero and less than or equal to the vertical non-display period register, i.e. reg[07h] fpline start position address = ffe7h read/write n/a n/a n/a fpline start position bit 4 fpline start position bit 3 fpline start position bit 2 fpline start position bit 1 fpline start position bit 0 reg[08h] horizontal non-display period address = ffe8h read/write n/a n/a n/a horizontal non-display period bit 4 horizontal non-display period bit 3 horizontal non-display period bit 2 horizontal non-display period bit 1 horizontal non-display period bit 0 reg[09h] fpframe start position address = ffe9h read/write n/a n/a fpframe start position bit 5 fpframe start position bit 4 fpframe start position bit 3 fpframe start position bit 2 fpframe start position bit 1 fpframe start position bit 0 fplineposition pixels () reg 07h [] 2 + () 8 = reg 07h [] reg 08h [] horizontalnondisplayperiod pixels () reg 08h [] 4 + () 8 = fpframeposition lines () reg 09h [] = 1reg09h [] reg 0ah []
epson research and development page 61 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 bit 7 vertical non-display status this bit =1 during the vertical non-display period. bits 5-0 vertical non-display period these bits specify the vertical non-display period. note this register should be set only once, on power-up during initialization. . bits 5-0 mod rate bits [5:0] when the value of this register is 0, the mod output signal toggles every fpframe. for a non-zero value, the value in this register + 1 specifies the number of fplines between toggles of the mod output signal. these bits are for passive lcd panels only. reg[0dh] bit 6-0 screen 1 start address bits [14:0] reg[0ch] bit 7-0 these bits determine the word address of the start of screen 1 in landscape modes or the byte address of the start of screen 1 in swivelview modes. reg[0dh] bit 7 screen 1 start address bit 15 this bit is for swivelview mode only and has no effect in landscape mode. reg[0ah] vertical non-display period address = ffeah read/write vertical non- display status n/a vertical non- display period bit 5 vertical non- display period bit 4 vertical non- display period bit 3 vertical non- display period bit 2 vertical non- display period bit 1 vertical non- display period bit 0 reg[0bh] mod rate register address = ffebh read/write n/a n/a mod rate bit 5 mod rate bit 4 mod rate bit 3 mod rate bit 2 mod rate bit 1 mod rate bit 0 reg[0ch] screen 1 start address register (lsb) address = ffech read/write screen 1 start address bit 7 screen 1 start address bit 6 screen 1 start address bit 5 screen 1 start address bit 4 screen 1 start address bit 3 screen 1 start address bit 2 screen 1 start address bit 1 screen 1 start address bit 0 reg[0dh] screen 1 start address register (msb) address = ffedh read/write screen 1 start address bit 15 screen 1 start address bit 14 screen 1 start address bit 13 screen 1 start address bit 12 screen 1 start address bit 11 screen 1 start address bit 10 screen 1 start address bit 9 screen 1 start address bit 8 verticalnondisplayperiod lines () reg 0ah [] =
page 62 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 reg[10h] bit 6-0 screen 2 start address bits [14:0] reg[0fh] bit 7-0 these bits determine the word address of the start of screen 2 in landscape modes or the byte address of the start of screen 2 in swivelview modes. reg[10h] bit 7 screen 2 start address bit 15 this bit is for swivelview mode only and has no effect in landscape mode. bits 7-0 memory address offset bits [7:0] (landscape modes only) this register is used to create a virtual image by setting a word offset between the last address of one line and the first address of the following line. if this register is not equal to zero, then a virtual image is formed. the displayed image is a window into the larger vir- tual image. see figure 8-1: screen-register relationship, split screen, on page 64. this register has no effect in swivelview modes. see reg[1ch] line byte count regis- ter for swivelview mode on page 69. reg[0fh] screen 2 start address register (lsb) address = ffefh read/write screen 2 start address bit 7 screen 2 start address bit 6 screen 2 start address bit 5 screen 2 start address bit 4 screen 2 start address bit 3 screen 2 start address bit 2 screen 2 start address bit 1 screen 2 start address bit 0 reg[10h] screen 2 start address register (msb) address = fff0h read/write screen 2 start address bit 15 screen 2 start address bit 14 screen 2 start address bit 13 screen 2 start address bit 12 screen 2 start address bit 11 screen 2 start address bit 10 screen 2 start address bit 9 screen 2 start address bit 8 reg[12h] memory address offset register address = fff2h read/write memory address offset bit 7 memory address offset bit 6 memory address offset bit 5 memory address offset bit 4 memory address offset bit 3 memory address offset bit 2 memory address offset bit 1 memory address offset bit 0
epson research and development page 63 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 . reg[14h] bits 1-0 screen 1 vertical size bits [9:0] reg[13h] bits 7-0 this register is used to implement the split screen feature of the sed1374. these bits determine the height (in lines) of screen 1. on reset this register is set to 0h. in landscape modes, if this register is programmed with a value, n, where n is less than the vertical panel size (reg[06h], reg[05h]), then lines 0 to n of the panel contain screen 1 and lines n+1 to reg[06h], reg[05h] of the panel contain screen 2. see figure 8-1: screen-register relationship, split screen, on page 64. if split screen is not desired, this register must be programmed greater than, or equal to the vertical panel size, reg[06h] and reg[05h]. in swivelview modes this register must be programmed greater than, or equal to the verti- cal panel size, reg[06h] and reg[05h]. see swivelview? on page 79. reg[13h] screen 1 vertical size register (lsb) address = fff3h read/write screen 1 vertical size bit 7 screen 1 vertical size bit 6 screen 1 vertical size bit 5 screen 1 vertical size bit 4 screen 1 vertical size bit 3 screen 1 vertical size bit 2 screen 1 vertical size bit 1 screen 1 vertical size bit 0 reg[14h] screen 1 vertical size register (msb) address = fff4h read/write n/a n/a n/a n/a n/a n/a screen 1 vertical size bit 9 screen 1 vertical size bit 8
page 64 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 figure 8-1: screen-register relationship, split screen consider an example where reg[14h], reg[13h]= 0ceh for a 320x240 display system. the upper 207 lines (ceh + 1) of the panel show an image from the screen 1 start word address. the remaining 33 lines show an image from the screen 2 start word address. line 0 line 1 (reg[0dh], reg[0ch]) words line 0 last pixel address + reg[12h] words line 0 last pixel address=((reg[0dh], reg[0ch]) + (8(reg[04h]+1) bpp/16)) 8(reg[04h]+1) pixels virtual image reg[12h] words line=(reg[14h], reg[13h]) ((reg[06h], reg[05])+1) lines image 1 image 2 (reg[10h], reg[0fh]) words where: (reg[0dh], reg[0ch]) is the screen 1 start word address bpp is bits-per-pixel as set by reg[02h] bits 7:6 reg[12h] is the address pitch adjustment in words (reg[10h], reg[0fh]) is the screen 2 start word address (reg[14h], reg[13h]) is the screen 1 vertical size (reg[06h], reg[05h]) is the vertical panel size words
epson research and development page 65 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 the sed1374 has three 16-position, 4-bit wide look-up tables, one each for red, green, and blue. refer to look-up table architecture for details. this register selects which look-up table position is read/write accessible through the look-up table data register (reg[17h]). bits 5-4 rgb index bits [1:0] these bits select between the red, green, and blue look-up tables, and auto-increment mode. the green look-up table is used in monochrome mode with these bits set to 10b. see note below. bits 3-0 look-up table address bits [3:0] these 4 bits select one of the 16 positions in the selected look-up table. these bits are automatically changed as the look-up table data register is accessed. see note below. note accesses to the look-up table data register automatically increment a pointer into the rgb look-up tables. the pointer sequence varies as shown in the table below. in auto-increment mode, writing the look-up table address register automatically sets the pointer to the red look-up table. for example, writing a value 03 into the look-up table address register selects auto-increment mode and sets the pointer to r[3]. subsequent accesses to the look-up table data register move the pointer onto g[3], b[3], r[4], etc. reg[15h] look-up table address register address = fff5h read/write n/a n/a rgb index bit 1 rgb index bit 0 look-up table address bit 3 look-up table address bit 2 look-up table address bit 1 look-up table address bit 0 table 8-7: look-up table access reg[01h] reg[15h] look-up table selected pointer sequence bit 5 bit 5 bit 4 010 green/gray look- up table g[n], g[n+1], g[n+2],... 1 0 0 auto-increment r[n], g[n], b[n], r[n+1], g[n+1],... 1 0 1 red look-up table r[n], r[n+1], r[n+2],... 110 green/gray look- up table g[n], g[n+1], g[n+2],... 1 1 1 blue look-up table b[n], b[n+1], b[n+2],...
page 66 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 . bits 7-6 n/a bits 5-4 red bank select bits [1:0] in 1 bit-per-pixel (bpp) color mode the lower 8 positions of the red look-up table is arranged into four banks, each with two positions. these two bits select which bank is used for display data. in 2 bpp color mode the 16 position red look-up table is arranged into four banks, each with four positions. these two bits select which bank is used for display data. these bits have no effect in 4 bpp color/gray modes. in 8 bpp color mode the 16 position, red look-up table is arranged into two banks, each with eight positions. red bank select bit 0 selects which bank is used for display data. bits 3-2 green bank select bits [1:0] in 1 bit-per-pixel (bpp) color/gray mode the lower 8 positions of the green look-up table is arranged into four banks, each with two positions. these two bits select which bank is used for display data. in 2 bpp color/gray mode, the 16 position green look-up table is arranged into four banks, each with four positions. these two bits select which bank is used for display data. these bits have no effect in 4 bpp color/gray modes. in 8 bpp color mode, the 16 position green look-up table is arranged into two banks, each with eight positions. green bank select bit 0 selects which bank is used for display data. bit 1-0 blue bank select bits [1:0] in 1 bit-per-pixel (bpp) color mode the lower 8 positions of the blue look-up table is arranged into four banks, each with two positions. these two bits select which bank is used for display data. in 2 bpp color mode, the 16 position blue look-up table is arranged into four banks, each with four positions. these two bits select which bank is used for display data. these bits have no effect in 4 bpp color/gray modes. in 8 bpp color mode, the 16 position blue look-up table is arranged into four banks, each with four positions. these two bits select which bank is used for display data. reg[16h] look-up table bank select register address = fff6h read/write n/a n/a red bank select bit 1 red bank select bit 0 green bank select bit 1 green bank select bit 0 blue bank select bit 1 blue bank select bit 0
epson research and development page 67 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 bits 3-0 look-up table data bits [3:0] this register is used to read/write the rgb look-up tables. this register is an aperture into the three 16-position look-up tables. the look-up table address register (reg[16h]) selects which look-up table position is accessible. see reg[16h] look-up table bank select register on page 66. bits 4-0 gpio[4:0] pin io configuration these bits determine the direction of the gpio[4:0] pins. when gpion pin io configuration bit = 0, the corresponding gpion pin is configured as an input. the input can be read at the gpion status/control register bit. see reg[19h] below. when gpion pin io configuration bit = 1, the corresponding gpion pin is configured as an output. the output can be controlled by writing the gpion status/control register bit. note these bits have no effect when the gpion pin is configured for a specific function (i.e. as fpdat[11:8] for tft/md-tfd operation). all unused gpio pins must be tied to io v dd . bits 4-0 gpio[4:0] status when the gpion pin is configured as an input, the corresponding gpio status bit is used to read the pin input. see reg[18h] above. when the gpion pin is configured as an output, the corresponding gpio status bit is used to control the pin output. reg[17h] look-up table data register address = fff7h read/write n/an/an/an/a look-up table data bit 3 look-up table data bit 2 look-up table data bit 1 look-up table data bit 0 reg[18h] gpio configuration control register address = fff8h read/write n/a n/a n/a gpio4 pin io configuration gpio3 pin io configuration gpio2 pin io configuration gpio1 pin io configuration gpio0 pin io configuration reg[19h] gpio status/control register address = fff9h read/write n/a n/a n/a gpio4 pin io status gpio3 pin io status gpio2 pin io status gpio1 pin io status gpio0 pin io status
page 68 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 bits 7-0 scratch pad register this register contains general use read/write bits. these bits have no effect on hardware. bit 7 swivelview mode enable when this bit = 1, swivelview mode is enabled. when this bit = 0, landscape mode is enabled. bit 6 swivelview mode select when this bit = 0, default swivelview mode is selected. when this bit = 1, alternate swivelview mode is selected. see section 12, swivelview? on page 79 for further information on swivelview mode. the following table shows the selection of swivelview mode. bit 2 reserved reserved bits must be set to 0. bits 1-0 swivelview mode pixel clock select bits [1:0] these two bits select the pixel clock (pclk) source in swivelview mode - these bits have no effect in landscape mode. the following table shows the selection of pclk and mclk in swivelview mode - see section 12, swivelview? on page 79 for details. reg[1ah] scratch pad register address = fffah read/write scratch bit 7 scratch bit 6 scratch bit 5 scratch bit 4 scratch bit 3 scratch bit 2 scratch bit 1 scratch bit 0 reg[1bh] swivelview mode register address = fffbh read/write swivelview mode enable swivelview mode select n/a n/a n/a reserved swivelview mode pixel clock select bit 1 swivelview mode pixel clock select bit 0 table 8-8: selection of swivelview mode swivelview mode enable (reg[1bh] bit 7) swivelview mode select (reg[1bh] bit 6) mode 0 x landscape 1 0 default swivelview 1 1 alternate swivelview
epson research and development page 69 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 bits 7-0 line byte count bits [7:0] this register is the byte count from the beginning of one line to the beginning of the next consecutive line (commonly called stride by programmers). this register may be used to create a virtual image in swivelview mode. reg[1eh] and reg[1fh] reg[1eh] and reg[1fh] are reserved for factory sed1374 testing and should not be written. any value written to these registers may result in damage to the sed1374 and/or any panel connected to the sed1374. table 8-9: selection of pclk and mclk in swivelview mode swivelview mode enable (reg[1bh] bit 7) swivelview mode select (reg[1bh] bit 6) pixel clock (pclk) select (reg[1bh] bits [1:0] pclk = mclk = bit 1 bit 0 0 x x x clk see reg[02h] bit 5 1000clk clk 1001clk/2clk/2 1010clk/4clk/4 1011clk/8clk/8 1100clk/2clk 1101clk/2clk 1110clk/4clk/2 1111clk/8clk/4 where clk is clki (reg[02h] bit 4 = 0) or clki/2 (reg[02h] bit 4 = 1) reg[1ch] line byte count register for swivelview mode address = fffch read/write line byte count bit 7 line byte count bit 6 line byte count bit 5 line byte count bit 4 line byte count bit 3 line byte count bit 2 line byte count bit 1 line byte count bit 0
page 70 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 9 frame rate calculation the following formulae are used to calculate the display frame rate. tft/md-tfd and passive single-panel modes where: f pclk = pclk frequency (hz) hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8 pixels hndp = horizontal non-display period = ((reg[08h] bits 4-0) + 4) x 8 pixels vdp = vertical display period = ((reg[06h] bits 1-0, reg[05h] bits 7-0) + 1) lines vndp = vertical non-display period = (reg[0ah] bits 5-0) lines passive dual-panel mode where: f pclk = pclk frequency (hz) hdp = horizontal display period = ((reg[04h] bits 6-0) + 1) x 8 pixels hndp = horizontal non-display period = ((reg[08h] bits 4-0) + 4) x 8 pixels vdp = vertical display period = ((reg[06h] bits 1-0, reg[05h] bits 7-0) + 1) lines vndp = vertical non-display period = (reg[0ah] bits 5-0) lines framerate f pclk hdp hndp + () vdp vndp + () ---------------------------------------------------------------------------------------- - = framerate f pclk 2 hdp hndp + () vdp 2 ------------ v n d p + ? ?? -------------------------------------------------------------------------------------------------- =
epson research and development page 71 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 10 display data formats figure 10-1: 1/2/4/8 bit-per-pixel display data memory organization 1-bpp: a 0 a 1 a 2 a 3 a 4 a 5 a 6 a 7 host address display memory panel display p 0 p 1 p 2 p 3 p 4 p 5 p 6 p 7 2-bpp: a 0 b 0 a 1 b 1 a 2 b 2 a 3 b 3 host address display memory a 4 b 4 a 5 b 5 a 6 b 6 a 7 b 7 bit 7 bit 0 bit 7 bit 0 4-bpp: a 0 b 0 c 0 d 0 a 1 b 1 c 1 d 1 host address display memory a 2 b 2 c 2 d 2 a 3 b 3 c 3 d 3 bit 7 bit 0 a 4 b 4 c 4 d 4 a 5 b 5 c 5 d 5 host address display memory bit 7 bit 0 8-bpp: 3-3-2 rgb r 0 2 r 0 1 r 0 0 g 0 2 g 0 1 g 0 0 b 0 1 b 0 0 r 1 2 r 1 1 r 1 0 g 1 2 g 1 1 g 1 0 b 1 1 b 1 0 r 2 2 r 2 1 r 2 0 g 2 2 g 2 1 g 2 0 b 2 1 b 2 0 byte 0 byte 0 byte 1 byte 0 byte 1 byte 2 byte 0 byte 1 byte 2 panel display p 0 p 1 p 2 p 3 p 4 p 5 p 6 p 7 panel display p 0 p 1 p 2 p 3 p 4 p 5 p 6 p 7 panel display p 0 p 1 p 2 p 3 p 4 p 5 p 6 p 7 p n = (a n ) p n = (a n , b n ) p n = (a n , b n , c n , d n ) p n = (r n 2-0 , g n 2-0 , b n 1-0 )
page 72 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 11 look-up table architecture the following figures are intended to show the display data output path only. the cpu r/w access to the individual look-up tables is not affected by the various banking configurations. 11.1 gray shade display modes 2-level gray shade mode figure 11-1: 2-level gray-shade mode look-up table architecture table 11-1: look-up table configurations display mode 4-bit wide look-up table red green blue 2-level gray 4 banks of 2 4-level gray 4 banks of 4 16-level gray 1 bank of 16 2 color 4 bank of 2 4 bank of 2 4 bank of 2 4 color 4 banks of 4 4 banks of 4 4 banks of 4 16 color 1 bank of 16 1 bank of 16 1 bank of 16 256 color 2 banks of 8 2 banks of 8 4 banks of 4 indicates the look-up table is not used for that display mode 0 1 1-bit pixel data green bank select reg[16h] bits [3:2] 4-bit display data output bank select logic 2 3 6 7 4 5 green look-up table 76543210 a0 a1 a2 a3 a4 a5 a6 a7 2 gray data format: see section 10
epson research and development page 73 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 4-level gray shade mode figure 11-2: 4-level gray-shade mode look-up table architecture 16-level gray shade mode figure 11-3: 16-level gray-shade mode look-up table architecture green look-up table 0 1 2 3 2-bit pixel data 0 1 2 3 0 1 2 3 0 1 2 3 bank 0 bank 1 bank 2 bank 3 4-bit display data output bank select logic green bank select reg[16h] bits [3:2] 76543210 a0 b0 a1 b1 a2 b2 a3 b3 4 gray data format: see section 10 4-bit pixel data 4-bit display data output green look-up table 16x4 0 1 2 3 c d e f 76543210 a0 b0 c0 d0 a1 b1 c1 d1 16 gray data format: see section 10
page 74 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 look-up table bypass mode figure 11-4: look-up table bypass mode architecture note in 1 bit-per-pixel display mode, look-up table bypass mode will turn off the frm circuitry and place the sed1374 in black-and-white mode. in 2 bit-per-pixel mode the display data output values are 0, 5, a, and f (in hex). look-up tables 1 bit pixel data (a n ) 2 bit pixel data (a n , b n ) 4 bit pixel data (a n , b n , c n , d n ) 1 bit display data output (a n ) 4 bit display data output (a n , b n , a n , b n ) 4 bit display data output (a n , b n , c n , d n )
epson research and development page 75 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 11.2 color display modes 2-level color mode figure 11-5: 2-level color look-up table architecture 0 1 1-bit pixel data red bank select reg[16h] bits [5:4] 4-bit red display data output bank select logic 2 3 6 7 4 5 red look-up table 0 1 green bank select reg[16h] bits [3:2] 4-bit green display data output bank select logic 2 3 6 7 4 5 green look-up table 0 1 blue bank select reg[16h] bits [1:0] 4-bit blue display data output bank select logic 2 3 6 7 4 5 blue look-up table 76543210 a0 a1 a2 a3 a4 a5 a6 a7 2 color data format: see section 10
page 76 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 4-level color mode figure 11-6: 4-level color mode look-up table architecture 0 1 2 3 2-bit pixel data 0 1 2 3 0 1 2 3 0 1 2 3 bank 0 bank 1 bank 2 bank 3 red bank select reg[16h] bits [5:4] 4-bit red display data output bank select logic 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 bank 0 bank 1 bank 2 bank 3 green bank select reg[16h] bits [3:2] 4-bit green display data output bank select logic 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 bank 0 bank 1 bank 2 bank 3 blue bank select reg[16h] bits [1:0] 4-bit blue display data output bank select logic red look-up table green look-up table blue look-up table 76543210 a0 b0 a1 b1 a2 b2 a3 b3 4 color data format: see section 10
epson research and development page 77 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 16-level color mode figure 11-7: 16-level color mode look-up table architecture 4-bit pixel data 4-bit red display data output red look-up table 16x4 0 1 2 3 c d e f 4-bit green display data output green look-up table 16x4 0 1 2 3 c d e f 4-bit blue display data output blue look-up table 16x4 0 1 2 3 c d e f 76543210 a0 b0 c0 d0 a1 b1 c1 d1 16 color data format: see section 10
page 78 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 256-level color mode figure 11-8: 256-level color mode look-up table architecture red look-up table 0 1 2 3 4 5 6 7 bank 0 bank 1 bank select logic 3-bit pixel data 0 1 2 3 4 5 6 7 bank 0 0 1 2 3 4 5 6 7 bank 1 bank select logic 3-bit pixel data 0 1 2 3 2-bit pixel data 0 1 2 3 0 1 2 3 0 1 2 3 bank 0 bank 1 bank 2 bank 3 blue bank select reg[16h] bits [1:0] bank select logic blue look-up table green look-up table green bank select reg[16h] bit 2 red bank select reg[16h] bit 4 76543210 r2 r1 r0 g2 g1 g0 b1 b0 256 color data format: 0 1 2 3 4 5 6 7 see section 10
epson research and development page 79 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 12 swivelview? many of todays applications use the lcd panel in a portrait orientation. in this case it becomes necessary to rotate the displayed image. this rotation can be done by software at the expense of performance or, as with the sed1374, it can be done by hardware with no cpu penalty. there are two swivelview modes: default swivelview and alternate swivelview. 12.1 default swivelview mode default swivelview mode requires the portrait image width be a power of two, e.g. a 240- line panel requires a minimum virtual image width of 256. this mode should be used whenever the required virtual image can be contained within the integrated display buffer (i.e. virtual image size 40k bytes), as it consumes less power than the alternate swivelview mode. for example, the panel size is 320x240 and the display mode is 4 bit-per-pixel. the virtual image size is 320x256 which can be contained within the 40k byte display buffer. default swivelview mode also requires memory clock (mclk) 3 pixel clock (pclk). the following figure shows how the programmer sees a 240x320 image and how the image is displayed. the application image is written to the sed1374 in the following sense: aCbCcCd. the display is refreshed by the sed1374 in the following sense: b-d-a-c. figure 12-1: relationship between the screen image and the image refreshed by sed1374 256 256 image seen by programmer = image in display buffer 320 swivelview window 320 240 ab c d d c b a 240 start address swivelview window display e e image refreshed by sed1374 start address physical memory
page 80 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 12.1.1 how to set up default swivelview mode the following describes the register settings needed to set up default swivelview mode for a 240x320x4 bpp image: ? select default swivelview mode: reg[1bh] bit 7 = 1 and bit 6 = 0 ? the display refresh circuitry starts at pixel b, therefore the screen 1 start address register must be programmed with the address of pixel b, i.e. ? the line byte count register for swivelview mode must be set to the virtual-image width in bytes, i.e. ? panning is achieved by changing the screen 1 start address register: ? increment the register by 1 to pan horizontally by one byte, e.g. two pixels in 4 bpp mode ? increment the register by twice the value in the line byte count register to pan verti- cally by two lines, e.g. add 100h to pan by two lines in the example above. note vertical panning by a single line is not supported in default swivelview mode. reg 0dh [] reg 0ch [] addressofpixelb = , addressofpixela byteoffset + () = addressofpixela 240pixels 4bpp 8bpb -------------------------------------------- ? ?? 1 C + = addressofpixela 77h + = where bpp is bits-per-pixel and bpb is bits-per-byte. reg 1ch [] 256 8bpb () 4bpp () ? ----------------------------------------- - 256 2 -------- - 128 80h ==== where bpb is bits-per-byte and bpp is bits-per-pixel.
epson research and development page 81 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 12.2 alternate swivelview mode alternate swivelview mode may be used when the virtual image size of default swivelview mode cannot be contained in the 40kbyte integrated frame buffer. for example, the panel size is 240x160 and the display mode is 8 bit-per-pixel. the minimum virtual image size for default swivelview mode would be 240x256 which requires 60k bytes. alternate swivelview mode requires a panel size of only 240x160 which needs only 38,400 bytes. alternate swivelview mode requires the memory clock (mclk) to be at least twice the frequency of the pixel clock (pclk), i.e. mclk 3 2 x pclk. because of this, the power consumption in alternate swivelview mode is higher than in default swivelview mode. the following figure shows how the programmer sees a 240x160 image and how the image is being displayed. the application image is written to the sed1374 in the following sense: aCbCcCd. the display is refreshed by the sed1374 in the following sense: b-d-a-c. figure 12-2: relationship between the screen image and the image refreshed by sed1374 image seen by programmer = image in display buffer 240 swivelview window 240 160 ab c d d c b a 160 start address swivelview window display image refreshed by sed1374 start address physical memory
page 82 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 12.2.1 how to set up alternate swivelview mode the following describes the register settings needed to set up alternate swivelview mode for a 160x240x8 bpp image. ? select alternate swivelview mode: reg[1bh] bit 7 = 1 and bit 6 = 1 ? the display refresh circuitry starts at pixel b, therefore the screen 1 start address register must be programmed with the address of pixel b, or ? the line byte count register for swivelview mode must be set to the image width in bytes, i.e. ? panning is achieved by changing the screen 1 start address register: ? increment the register by 1 to pan horizontally by one byte, e.g. one pixel in 8 bpp mode ? increment the register by the value in the line byte count register to pan vertically by one line, e.g. add a0h to pan by one line in the example above reg 0dh [] reg 0ch [] addressofpixelb = , addressofpixela byteoffset + () = addressofpixela 160pixels 8bpp 8bpb -------------------------------------------- ? ?? 1 C + = addressofpixela 9fh + = where bpp is bits-per-pixel and bpb is bits-per-byte. reg 1ch [] 160 8bpb () 8bpp () ? ----------------------------------------- - 160 1 -------- -160a0h ==== where bpb is bits-per-byte and bpp is bits-per-pixel.
epson research and development page 83 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 12.3 comparison between default and alternate swivelview modes 12.4 swivelview mode limitations the only limitation to using swivelview mode on the sed1375 is that split screen operation is not supported. table 12-1: default and alternate swivelview mode comparison item default swivelview mode alternate swivelview mode memory requirements the width of the rotated image must be a power of 2. in most cases, a virtual image is required where the right-hand side of the virtual image is unused and memory is wasted. for example, a 160x240x8bpp image would normally require only 38,400 bytes - possible within the 40k byte address space, but the virtual image is 256x240x8bpp which needs 61,440 bytes - not possible. does not require a virtual image. clock requirements clk need only be as fast as the required pclk. mclk, and hence clk, need to be 2x pclk. for example, if the panel requires a 3mhz pclk, then clk must be 6mhz. note that 25mhz is the maximum clk, so pclk cannot be higher than 12.5mhz in this mode. power consumption lowest power consumption. higher than default mode. panning vertical panning in 2 line increments. vertical panning in 1 line increments. performance nominal performance. higher performance than default mode.
page 84 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 13 power save modes two power save modes have been incorporated into the sed1374 to accommodate the need for power reduction in the hand-held devices market. these modes are enabled as follows: 13.1 software power save mode software power save mode saves power by powering down the panel and stopping display refresh accesses to the display buffer. 13.2 hardware power save mode hardware power save mode saves power by powering down the panel, stopping accesses to the display buffer and registers, and disabling the host bus interface. table 13-1: power save mode selection hardware power save software power save bit 1 software power save bit 0 mode not configured or 0 0 0 software power save mode not configured or 0 0 1 reserved not configured or 0 1 0 reserved not configured or 0 1 1 normal operation configured and 1 x x hardware power save mode table 13-2: software power save mode summary ? registers read/write accessible ? memory read/write accessible ? lcd outputs are forced low table 13-3: hardware power save mode summary ? host interface not accessible ? memory read/write not accessible ? lcd outputs are forced low
epson research and development page 85 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 13.3 power save mode function summary note when fpdat[11:8] are designated as gpio outputs, the output state prior to enabling the power save mode is maintained. when fpdat[11:8] are designated as gpio in- puts, unused inputs must be tied to either io v dd or gnd - see table 5-3: lcd inter- face pin mapping, on page 23. 13.4 panel power up/down sequence after chip reset or when entering/exiting a power save mode, the panel interface signals follow a power on/off sequence shown below. this sequence is essential to prevent damage to the lcd panel. table 13-4: power save mode function summary hardware power save software power save normal io access possible? no yes yes memory access possible? no yes yes sequence controller running? no no yes display active? no no yes lcdpwr inactive inactive active fpdat[11:0], fpshift (see note) forced low forced low active fpline, fpframe, drdy forced low forced low active
page 86 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 figure 13-1: panel on/off sequence after chip reset, lcdpwr is inactive and the rest of the panel interface output signals are held low. software initializes the chip (i.e. programs the registers) and then - as a last step set - programs reg[03h] bits [1:0] to 11. this starts the power-up sequence as shown. the power-up/power-down sequence delay is 127 frames. the power-up/power-down sequence also occurs when exiting/entering software power save mode. 13.5 turning off bclk between accesses bclk may be turned off (held low) between accesses if the following rules are observed: 1. bclk must be turned off/on in a glitch free manner 2. bclk must continue for a period equal to [8t bclk + 12t mclk ] after the end of the access (rdy# asserted or wait# deasserted). 3. bclk must be present for at least one t bclk before the start of an access. reset# lcdpwr panel interface output signals (except lcdpwr) 0 frame 127 frames 0 frame power save mode power-down power-up power-up software power save 00 11 00 11 (cnf4 = low) lcdpwr (cnf4 = hi) hardware power save reg[03h] bits [1:0] or
epson research and development page 87 vancouver design center hardware functional specification sed1374 issue date: 99/04/29 x26a-a-001-02 13.6 clock requirements the following table shows what clock is required for which function in the sed1374. table 13-5: sed1374 internal clock requirements function bclk clki register read/write is required during register accesses. bclk can be shut down between accesses: allow eight bclk pulses plus 12 mclk pulses (8t bclk + 12t mclk ) after the last access before shutting bclk off. allow one bclk pulse after starting up bclk before the next access not required memory read/write is required during memory accesses. bclk can be shut down between accesses: allow eight bclk pulses plus 12 mclk pulses (8t bclk + 12t mclk ) after the last access before shutting bclk off. allow one bclk pulse after starting up bclk before the next access required software power save required can be stopped after 128 frames from entering software power save, i.e. after reg[03h] bits 1-0 = 11 hardware power save not required can be stopped after 128 frames from entering hardware power save
page 88 epson research and development vancouver design center sed1374 hardware functional specification x26a-a-001-02 issue date: 99/04/29 14 mechanical data figure 14-1: mechanical drawing qfp14 qfp14 - 80 pin unit: mm 120 60 41 40 21 61 80 index 0~10 12.0 0.1 12.0 0.1 14.0 0.4 14.0 0.4 0.5 0.18 1.4 0.1 0.125 1.0 0.5 0.2 0.1 - 0.05 + 0.1 - 0.025 + 0.05
sed1374 embedded memory color lcd controller programming notes and examples copyright ? 1998, 1999 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 this page left blank
epson research and development page 3 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 frame rate calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3 memory models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.1 display buffer location . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.1.1 1 bit-per-pixel (2 colors/gray shades) . . . . . . . . . . . . . . . . . . . . . . . . 11 3.1.2 2 bit-per-pixel (4 colors/gray shades) . . . . . . . . . . . . . . . . . . . . . . . . 12 3.1.3 4 bit-per-pixel (16 colors/gray shades) . . . . . . . . . . . . . . . . . . . . . . . 12 3.1.4 eight bit-per-pixel (256 colors) . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4 look-up table (lut) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4.1 look-up table registers . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4.2 look-up table (lut) organization . . . . . . . . . . . . . . . . . . . . . . 19 5 advanced techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.1 virtual display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.1.1 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.1.2 examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.2 panning and scrolling . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.2.1 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.2.2 examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.3 split screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 5.3.1 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 5.3.2 examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 6 lcd power sequencing and power save modes . . . . . . . . . . . . . . . . . . . 34 6.1 lcd power sequencing . . . . . . . . . . . . . . . . . . . . . . . . . . 34 6.2 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 6.3 lcd enable/disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 7 swivelview? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 7.1 introduction to swivelview . . . . . . . . . . . . . . . . . . . . . . . . . 36 7.2 default swivelview mode . . . . . . . . . . . . . . . . . . . . . . . . . 36 7.3 alternate swivelview mode . . . . . . . . . . . . . . . . . . . . . . . . . 37 7.4 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 7.5 limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 7.6 examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 8 identifying the sed1374 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 9 hardware abstraction layer (hal) . . . . . . . . . . . . . . . . . . . . . . . . . . 47 9.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
page 4 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 9.2 api for 1374hal . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47 9.2.1 initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 9.2.2 miscellaneous hal support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 9.2.3 advanced hal functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 9.2.4 register / memory access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 9.2.5 power save . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 9.2.6 drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 9.2.7 lut manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 10 sample code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61 10.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61 10.1.1 sample code using the sed1374 hal api . . . . . . . . . . . . . . . . . . . . . . 61 10.1.2 sample code without using the sed1374 hal api . . . . . . . . . . . . . . . . . 64 10.1.3 header files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
epson research and development page 5 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 list of tables table 2-1: sed1374 initialization sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 table 4-1: 2 bpp banking scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 table 4-2: 4 bpp banking scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 table 4-3: 8 bpp banking scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 table 4-4: look-up table configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 table 4-5: recommended lut values for 1 bpp color mode . . . . . . . . . . . . . . . . . . . . 20 table 4-6: lut values for 2 bpp color mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 table 4-7: suggested lut values to simulate vga default 16 color palette . . . . . . . . . . . 21 table 4-8: suggested lut values to simulate vga default 256 color palette . . . . . . . . . . . 22 table 4-9: recommended lut values for 1 bpp gray shade . . . . . . . . . . . . . . . . . . . . 23 table 4-10: suggested values for 2 bpp gray shade . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 table 4-11: suggested lut values for 4 bpp gray shade . . . . . . . . . . . . . . . . . . . . . . 24 table 5-1: number of pixels panned using start address . . . . . . . . . . . . . . . . . . . . . . 28 table 7-1: default and alternate swivelview mode comparison . . . . . . . . . . . . . . . . . . 41 list of figures figure 3-1: pixel storage for 1 bpp (2 colors/gray shades) in one byte of display buffer . . . . . 11 figure 3-2: pixel storage for 2 bpp (4 colors/gray shades) in one byte of display buffer . . . . . 12 figure 3-3: pixel storage for 4 bpp (16 colors/gray shades) in one byte of display buffer . . . . 12 figure 3-4: pixel storage for 8 bpp (256 colors) in one byte of display buffer . . . . . . . . . . . 13 figure 5-1: viewport inside a virtual display . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 figure 5-2: memory address offset register . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 figure 5-3: screen 1 start address registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 figure 5-4: 320x240 single panel for split screen . . . . . . . . . . . . . . . . . . . . . . . . . . 30 figure 5-5: screen 1 vertical size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 5-6: screen 2 start address registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 figure 7-1: relationship between the screen image and the image refreshed by sed1374 . . . . 37 figure 7-2: relationship between the screen image and the image refreshed by sed1374 . . . . 38
page 6 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 this page left blank
epson research and development page 7 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 1 introduction this guide describes how to program various features of the sed1374 embedded memory color lcd controller. the demonstrations include descriptions of how to calculate register values and explanations of how or why you might want to do certain procedures. this guide also introduces the hardware abstraction layer (hal), which is designed to simplify the programming of the sed1374. most sed135x, sed137x, and 138x products support the hal allowing oems to switch chips with relative ease.
page 8 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 2 initialization this section describes the register settings and steps needed to initialize the sed1374. the first step toward initializing the sed1374 is to set the control registers. the sed1374 then generates the proper control signals for the display. after setting the control registers, the look-up table must be programmed with meaningful values. this section does not cover setting look-up table values. see section 4 on page 14 of this manual for look-up table programming details. the following initialization, presented in table form, provides the sequences and values to set the registers. the notes column comments the reason for the particular value being written. this example writes to all the control registers. in practice, it may be possible to write to only a subset of the registers. when the sed1374 is first powered up all registers, unless noted otherwise in the specification, are set to zero. this example programs these registers to zero to establish a known state. the initialization enables the sed1374 to control a panel with the following specifications: ? 320x240 color dual passive panel at 75hz. ? color format 2, 8-bit data interface. ? 4 bit-per-pixel (bpp) - 16 colors. ? 25 mhz input clock (clki). table 2-1: sed1374 initialization sequence register value (hex) notes see also [01] 0010 0000 (20) select an passive, single, color panel with a data width of 4-bits [02] 1010 0000 (b0) select 4-bpp color depth and high performance. [03] 0000 0011 (03) select normal power operation [04] 0010 0111 (27) horizontal display size = (reg[04]+1)*8 = (39+1) * 8 = 320 pixels [05] 1110 1111 (ef) vertical display size = reg[06][05] + 1 = 0000 0000 1110 1111 + 1 = 239 +1 = 240 lines [06] 0000 0000 (00) [07] 0000 0000 (00) fpline start position (not used by stn) [08] 0001 1110 (1e) horizontal non-display period = (reg[08] + 4) * 8 = (30 + 4) * 8 = 272 pixels frame rate calculation [09] 0000 0000 (00) fpframe start position (not used by stn) [0a] 0010 0110 (26) vertical non-display period = reg[0a] = 38 lines frame rate calculation [0b] 0000 0000 (00) mod rate - not required for this panel [0c] 0000 0000 (00) screen 1 start address - set to 0 for initialization split screen on page 30 [0d] 0000 0000 (00) [0f] 0000 0000 (00) screen 2 start address - set to 0 for initialization [10] 0000 0000 (00)
epson research and development page 9 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 2.1 frame rate calculation the system the sed1374 is being configured for dictates certain physical constraints such as the width and height of the panel and the video system input clock. the following are the formulae for determining the frame rate of a panel. the frame rate for a single passive or tft panel is calculated as follows: for a dual passive panel the formula is: where: pclk = pixel clock (in hz) hdp = horizontal display period (in pixels) hndp = horizontal non-display period (in pixels) vdp = vertical display period (in lines) vndp = vertical non-display period (in lines) to achieve the desired frame rate the hndp and vndp values can be manipulated. the example below is a generic routine to calculate hndp and vndp from a desired frame rate. [12] 0000 0000 (00) memory address offset - not virtual setup so set to 0 [13] 1111 1111 (ff) set the vertical size to the maximum value. split screen on page 30 [14] 0000 0011 (03) [15] 0000 0000 (00) setlut control registers to 0 for this example. look-up table (lut) on page 14 [16] 0000 0000 (00) [17] 0000 0000 (00) [18] 0000 0000 (00) gpio control and status registers - set to 0 [19] 0000 0000 (00) [1a] 0000 0000 (00) set the scratch pad bits to 0. [1b] 0000 0000 (00) we are not setting up swivelview mode so set this register to 0. [1c] 0000 0000 (00) line byte count is only required for swivelview mode. [1e],[1f] 0000 0000 (00) these registers are reserved and should not be written to. table 2-1: sed1374 initialization sequence (continued) register value (hex) notes see also framerate pclk hdp hndp + () vdp vndp + () ---------------------------------------------------------------------------------------- - = framerate pclk 2 hdp hndp + () vdp 2 ------------ v n d p + ? ?? -------------------------------------------------------------------------------------------------- =
page 10 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 this routine first performs a formula rearrangement so that hndp or vndp can be solved for. start with vndp set to a small value. loop increasing vndp and solving the equation for hndp until satisfactory hndp and vndp values are found. if no satisfactory values are found then divide clki and repeat the process. if a satisfactory frame rate still cant be reached - return an error. in c the code looks like the following snip: for (int loop = 0; loop < 2; loop++) { for (vndp = 2; vndp < 0x3f; vndp += 3) { // solve for hndp hndp = (pclk / (framerate * (vdp + vndp))) - hdp; if ((hndp >= 32) && (hndp <= 280)) { // solve for vndp. vndp = (pclk / (framerate * (hdp + hndp))) - vdp; // if we have satisfied vndp then we're done. if ((vndp >= 0) && (vndp <= 0x3f)) goto donecalc; } } // divide clki and try again. // (reg[02] allows us to dived clki by 2) pclk /= 2; } // if we still can't hit the frame rate - throw an error. if ((vndp < 0) || (vndp > 0x3f) || (hndp < 32) || (hndp > 280)) { sprintf("error: unable to set the desired frame rate.\n"); exit(1); }
epson research and development page 11 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 3 memory models the sed1374 is capable of operating at four different color depths. the data format for each color depth is packed pixel. sed1374 packed pixel modes can range from one byte containing eight adjacent pixels (1-bpp) to one byte containing just one pixel (8-bpp). packed pixel data memory may be envisioned as a stream of data. pixels fill this stream with one pixel packed in adjacent to the next. if a pixel requires four bits then it will be located in the four most significant bits of a byte. the pixel to the immediate right on the display will occupy the lower four bits of the same byte. the next two pixels to the immediate right are located in the following byte, etc. 3.1 display buffer location the sed1374 contains 40 kilobytes of internal display memory. external support logic must be employed to determine the starting address for this display memory in cpu address space. on the sdu1374b0c pc platform evaluation boards the address is usually fixed at d0000h. 3.1.1 1 bit-per-pixel (2 colors/gray shades) 1-bit pixels support two color/gray shades. in this memory format each byte of display buffer contains eight adjacent pixels. setting or resetting any pixel requires reading the entire byte, masking out appropriate bits and, if necessary, setting bits to "1". with color panels the two colors are derived by indexing into positions 0 and 1 of the look- up table. for monochrome panels the two gray shades are generated by indexing into the first two elements of the green component of the look-up table (lut). if the first two lut elements are set to black (rgb = 0 0 0) and white (rgb = f f f) then each "0" bit of display memory will display as a black pixel and each "1" bit will display as a white pixel. the two lut entries can be set to any desired colors, for instance red/green or cyan/yellow. figure 3-1: pixel storage for 1 bpp (2 colors/gray shades) in one byte of display buffer bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0 pixel 0 pixel 1 pixel 2 pixel 3 pixel 4 pixel 5 pixel 6 pixel 7
page 12 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 3.1.2 2 bit-per-pixel (4 colors/gray shades) 2-bit pixels support four color/gray shades. in this memory format each byte of display buffer contains four adjacent pixels. setting or resetting any pixel requires reading the entire byte, masking out the appropriate bits and, if necessary, setting bits to "1". for color panels the four colors are derived by indexing into positions 0 through 3 of the look-up table. for monochrome panels the four gray shades are generated by indexing into the first four elements of the green component of the look-up table. figure 3-2: pixel storage for 2 bpp (4 colors/gray shades) in one byte of display buffer 3.1.3 4 bit-per-pixel (16 colors/gray shades) four bit pixels support 16 color/gray shades. in this memory format each byte of display buffer contains two adjacent pixels. setting or resetting any pixel requires reading the entire byte, masking out the upper or lower nibble (4 bits) and setting the appropriate bits to "1". for color panels the 16 colors are derived by indexing into the first 16 positions of the look-up table. for monochrome panels the gray shades are generated by indexing into the first 16 elements of the green component of the look-up table. figure 3-3: pixel storage for 4 bpp (16 colors/gray shades) in one byte of display buffer bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 pixel 0 bit 1 pixel 0 bit 0 pixel 1 bit 1 pixel 1 bit 0 pixel 2 bit 1 pixel 2 bit 0 pixel 3 bit 1 pixel 3 bit 0 bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0 pixel 0 bit 3 pixel 0 bit 2 pixel 0 bit 1 pixel 0 bit 0 pixel 1 bit 3 pixel 1 bit 2 pixel 1 bit 1 pixel 1 bit 0
epson research and development page 13 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 3.1.4 eight bit-per-pixel (256 colors) in eight bit-per-pixel mode one byte of display buffer represents one pixel on the display. at this color depth the read-modify-write cycles, required by the lessor pixel depths, are eliminated. each byte of display memory consists of three pointers into the look-up table. the three most significant bits form an index into the first eight red values. the next three bits are an index into the first eight green values. the last two bits form an index into the first four blue look-up table entries. figure 3-4: pixel storage for 8 bpp (256 colors) in one byte of display buffer bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0 red bit 2 red bit 1 red bit 0 green bit 2 green bit 1 green bit 0 blue bit 1 blue bit 0
page 14 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 4 look-up table (lut) this section is supplemental to the description of the look-up table (lut) architecture found in the sed1374 hardware functional specification. covered here is a review of the lut registers, recommendations for the color and monochrome lut values, and additional programming considerations for the lut. the sed1374 look-up table consists of sixteen 4-bit wide entries for each of red, green and blue. the look-up table is controlled by three registers. reg[15h] forms the index into the table. reg[16h] determines which bank is active during display. reg[17h] is the register where the look-up table data is read and written. the currently configured color depth affects how many indices will be used for image display. in color modes, pixel values are used as indices to an rgb value stored in the look-up table. in monochrome modes only the green component of the lut is used. 4.1 look-up table registers rgb index the rgb index bits determine how the sed1374 will handle automatic lut address updates. when the rgb index is set to auto-increment (00) then three consecutive accesses of reg[17h] will read/write the red, green, and then the blue elements at the look-up table index specified by the lut address. after three accesses of reg[17h] the lut address is incremented. the next access of reg[17h] will be the red element from the new look- up table address. by altering the rgb index the sequence can be changed such that three accesses of reg[17h] will affect just the reds or just the greens or just the blues at three different lut addresses. when configured for monochrome panels the mechanism in which writes are handled is slightly different. one to three reads are still required to update the lut address depending on the setting of the rgb index bits. if the rgb index bits are set to auto-increment then three writes to reg[17h] are required to bump the lut address. only the last write will affect the display appearance; it is copied across all three rgb elements. if the rgb index is set to access just red, just green or just blue then a single write to reg[17h] is copied to the red, green and blue elements of the lookup address and the lut address is incre- mented. reg[15h] look-up table address register read/write n/a n/a rgb index bit 1 rgb index bit 0 lut address bit 3 lut address bit 2 lut address bit 1 lut address bit 0
epson research and development page 15 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 look-up table address the look-up table (lut) consists of 16 indexed entries each consisting three 4-bit elements (red, green, blue). the lut address bits select which of the 16 entries is accessed. upon setting the lut address an internal pointer is set to the red element. dependent on the rgb index setting one to three accesses of the look-up table data register cause the lut address to automatically increment to the next index. look-up table bank select the look-up table bank select register affects displayed colors. depending on the color mode, not all of the sixteen look-up table (lut) entries are required. this register determines which entries will be displayed. at 1-bpp only the lower eight look-up table addresses are used. these are further divided into four banks of two colors. the bank selects determine which of the four red, green and blue banks the displayed colors will come from. for instance: assume the look-up table bank select register was set to 18h (0001 1000 b). red pixels would come from the 2nd red lookup bank (red lut addresses 2 and 3). green would be taken from the 3rd green lookup bank (green lut addresses 4 and 5). blue pixels would be taken from the 1st blue lookup bank (blue lut addresses 0 and 1). reg[16h] look-up table bank select register read/write n/a n/a red bank select bit 1 red bank select bit 0 green bank select bit 1 green bank select bit 0 blue bank select bit 1 blue bank select bit0
page 16 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 at 2-bpp, sixteen look-up table addresses are used. the look-up table is a now arranged into four banks of four colors each. as with 1-bpp, the bank select bits determine the initial offset into the look-up table. incrementing a bank select by one bumps the look-up table offset by four. table 4-1: 2 bpp banking scheme bank red lut addresses green lut addresses blue lut addresses 0 000 111 222 333 1 444 555 666 777 2 888 999 aaa bbb 3 ccc ddd eee fff
epson research and development page 17 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 at 4-bpp the pixel data is a direct index to the color to be displayed. at this color depth the look-up table bank select bits have no effect on the display colors. for instance: if the data was 7bh then the first pixel color would be from the rgb values of the 8th look-up table address. the second pixel would be the colored by the rgb value at the 12th (0bh) look-up table address. table 4-2: 4 bpp banking scheme red lut addresses green lut addresses blue lut addresses 000 111 222 333 444 555 666 777 888 999 aaa bbb ccc ddd eee fff
page 18 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 at 8-bpp the lookup scheme gets a little more complicated. each byte of display data contains 3 bits of red lookup, 3 bits of green lookup and 2 bits of blue lookup. the 16 addresses of the look-up table are divided into 2 eight-element banks for the red and green components and 4 four-element banks for the blue component. table 4-3: 8 bpp banking scheme red/green bank red lut addresses green lut addresses blue bank blue lut addresses 0 00 0 0 11 1 22 2 33 3 44 1 4 55 5 66 6 77 7 1 88 2 8 99 9 aa a bb b cc 3 c dd d ee e ff f
epson research and development page 19 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 lut data this register is where the 4-bit red/green/blue data value is written/read. with each successive read or write the internal rgb selector is incremented. depending on the rgb index setting, one to three access of this register will result in the look-up table address incrementing. 4.2 look-up table (lut) organization color and monochrome operation is slightly different. both look-up table schemes are described here. ? the look-up table treats the value of a pixel as an index into an array of colors or gray shades. for example, a pixel value of zero would point to the first lut entry; a pixel value of 7 would point to the eighth lut entry. ? the value inside each lut entry represents the intensity of the given color or gray shade. this intensity can range in value between 00 and 0fh. the following table shows how many elements from each look-up table index are used at the different color depths. reg[17h] look-up table data register read/write n/a n/a n/a n/a lut data bit 3 lut data bit 2 lut data bit 1 lut data bit 0 table 4-4: look-up table configurations display mode 4-bit wide look-up table red green blue 1 bpp gray 4 banks of 2 2 bpp gray 4 banks of 4 4 bpp gray 1 bank of 16 1 bpp color 4 banks of 2 4 banks of 2 4 banks of 2 2 bpp color 4 banks of 4 4 banks of 4 4 banks of 4 4 bpp color 1 bank of 16 1 bank of 16 1 bank of 16 8 bpp color 2 banks of 8 2 banks of 8 4 banks of 4 indicates the look-up table is not used for that display mode
page 20 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 color modes 1 bpp color when the sed1374 is configured for 1 bit-per-pixel color mode, only the first two colors from the active bank are displayed. the two entries can be set to any color but are typically set to black and white. each byte in the display buffer contains 8 bits, each bit represents an individual pixel. a bit value of "0" results in the look-up table 0 value being displayed. a bit set to "1" results in the look-up table index 1 value displayed. the following table shows the recommended values for 1 bpp on a color panel. 2 bpp color when the sed1374 is configured for 2 bit-per-pixel color mode, only the first four colors from the active bank are displayed. the four entries can be set to any color. each byte in the display buffer contains 4 adjacent pixels. each pair of bits in the byte are used as an index into the lut. the following table shows example values for 2 bpp color mode. table 4-5: recommended lut values for 1 bpp color mode index red green blue 00 00 00 00 01 0f 0f 0f 02 00 00 00 ... 00 00 00 0f 00 00 00 normally unused entries table 4-6: lut values for 2 bpp color mode index red green blue 00 00 00 0f 01 0f 00 00 02 00 0f 00 03 0f 0f 0f 04 00 00 00 ... 00 00 00 0f 00 00 00 normally unused entries
epson research and development page 21 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 4 bpp color when the sed1374 is configured for 4 bit-per-pixel operation all sixteen look-up table entries are used. each byte in the display buffer contains two adjacent pixels. the upper and lower nibbles of the byte are used as indices into the lut. the following table shows lut values that simulate those of a vga operating in 16 color mode. table 4-7: suggested lut values to simulate vga default 16 color palette index red green blue 00 00 00 00 01 00 00 0a 02 00 0a 00 03 00 0a 0a 04 0a 00 00 05 0a 00 0a 06 0a 0a 00 07 0a 0a 0a 08 00 00 00 09 00 00 0f 0a 00 0f 00 0b 00 0f 0f 0c 0f 00 00 0d 0f 00 0f 0e 0f 0f 00 0f 0f 0f 0f
page 22 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 8 bpp color when the sed1374 is configured for 8 bit-per-pixel color mode, 8 colors from red and green and 4 colors from the blue active banks are displayed. the eight red, eight green and four blue entries can be set to any color. the sed1374 lut has four bits (16 levels) of intensity control per primary color while a standard vga ramdac has six bits (64 levels). this four to one difference has to be considered when attempting to match colors between a vga ramdac and the sed1374 lut. (i.e. vga levels 0 - 3 map to lut level 0, vga levels 4 - 7 map to lut level 1... etc.). the following table shows lut values that approximate the default 256 color vga palette. table 4-8: suggested lut values to simulate vga default 256 color palette index red green blue 00 00 00 00 01 02 02 05 02 04 04 0a 03 06 06 0f 04 09 09 00 05 0b 0b 00 06 0d 0d 00 07 0f 0f 00 08 00 00 00 ... 00 00 00 0f 00 00 00 normally unused entries
epson research and development page 23 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 gray shade modes 1 bpp gray shade (black-and-white) in 1 bpp gray shade mode only the first two entries of the green lut are used. all other lut entries are unused. 2 bpp gray shade in 2 bpp gray shade mode the first four green elements are used to provide values to the panel. the remaining indices are unused. table 4-9: recommended lut values for 1 bpp gray shade address red green blue 00 00 00 00 01 0f 0f 0f 02 00 00 00 ... 00 00 00 0f 00 00 00 normally unused entries table 4-10: suggested values for 2 bpp gray shade index red green blue 0 00 00 00 1 05 05 05 2 0a 0a 0a 3 0f 0f 0f 4 00 00 00 ... 00 00 00 f 00 00 00 normally unused entries
page 24 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 4 bpp gray shade the 4 bpp gray shade mode uses all 16 lut elements. table 4-11: suggested lut values for 4 bpp gray shade index red green blue 00 00 00 00 01 01 01 01 02 02 02 02 03 03 03 03 04 04 04 04 05 05 05 05 06 06 06 06 07 07 07 07 08 08 08 08 09 09 09 09 0a 0a 0a 0a 0b 0b 0b 0b 0c 0c 0c 0c 0d 0d 0d 0d 0e 0e 0e 0e 0f 0f 0f 0f normally unused entries
epson research and development page 25 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 5 advanced techniques this section contains information on the following: ? virtual display ? panning and scrolling ? split screen display 5.1 virtual display virtual display refers to the situation where the image to be viewed is larger than the physical display. the difference can be in the horizontal, vertical or both dimensions. to view the image, the display is used as a window into the display buffer. at any given time only a portion of the image is visible. panning and scrolling are used to view the full image. the memory address offset register determines the number of horizontal pixels in the virtual image. the offset register can be used to specify from 0 to 255 additional words for each scan line. at 1 bpp, 255 words span an additional 4,080 pixels. at 8 bpp, 255 words span an additional 510 pixels. the maximum vertical size of the virtual image is the result of dividing 40960 bytes of display memory by the number of bytes on each line (i.e. at 1 bpp with a 320x240 panel set for a virtual width of 640x480 there is enough memory for 512 lines). figure 5-1: viewport inside a virtual display, depicts a typical use of a virtual display. the display panel is 320x240 pixels, an image of 640x480 pixels can be viewed by navigating a 320x240 pixel viewport around the image using panning and scrolling. figure 5-1: viewport inside a virtual display 320x240 viewport 640x480 virtual display
page 26 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 5.1.1 registers figure 5-2: memory address offset register reg[12h] forms an 8-bit value called the memory address offset. this offset is the number of additional bytes on each line of the display. if the offset is set to zero there is no virtual width. note this value does not represent the number of words to be shown on the display. the dis- play width is set in the horizontal display width register. 5.1.2 examples example 1: in this example we go through the calculations to display a 640x480 im- age on a 320x240 panel at 2 bpp. step 1: calculate the number of pixels per word for this color depth. at 2 bpp each byte is comprised of 4 pixels, therefore each word contains 8 pixels. pixels_per_word = 16 / bpp = 16 / 2 = 8 step 2: calculate the memory address offset register value we require a total of 640 pixels. the horizontal display register will account for 320 pixels, this leaves 320 pixels for the memory address offset register to account for. offset = pixels / pixels_per_word = 320 / 8 = 40 = 28h the memory address offset register, reg[12h], will have to be set to 28h to satisfy the above condition. reg[12h] memory address offset register memory address offset bit 7 memory address offset bit 6 memory address offset bit 5 memory address offset bit 4 memory address offset bit 3 memory address offset bit 2 memory address offset bit 1 memory address offset bit 0
epson research and development page 27 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 example 2: from the above, what is the maximum number of lines our image can contain? step 1: calculate the number of bytes on each line. bytes_per_line = pixels_per_line / pixels_per_byte = 640 / 4 = 160 each line of the display requires 160 bytes. step 2: calculate the number of lines the sed1374 is capable of. total_lines = memory / bytes_per_line = 40960 / 160 = 256 the the maximum number of lines which can be accommodated by our image can contain is 256. this example will not fit in available display memory. we must reduce either the color depth or the virtual image size. 5.2 panning and scrolling panning and scrolling describe the actions of appearing to move the image in a virtual display so that all the image can be viewed. after correctly setting up a virtual display (see above) and loading an image into display memory, panning and scrolling allow viewing the entire image a portion at a time. panning describes the horizontal (side to side) motion of the viewport. when panning to the right the image in the viewport appears to slide to the left. when panning to the left the image to appears to slide to the right. scrolling describes the vertical (up and down) motion of the viewport. scrolling down causes the image to appear to slide up and scrolling up causes the image to appear to slide down. both panning and scrolling are performed by modifying the start address register. start address refers to the word offset in the display buffer where the image will start being displayed from. the start address registers in the sed1374 are an offset to the first word to be displayed in the top left corner of every frame. keep in mind that the start address is a word offset. changing the start address by one means a change of one words worth of pixels. the number of pixels in word varies according to the color depth. at 1 bit-per-pixel a word contains sixteen pixels. at 2 bit-per- pixel there are eight pixels, at 4 bit-per-pixel there are four pixels and at 8 bit-per-pixel there are two pixels. the number of pixels in each word represent the finest panning step the sed1374 is capable of. (i.e. at 4 bit-per-pixel the display will move sideways by four pixels for each change to the start address registers) when swivelview mode (see swivelview? on page 36) is enabled the start address registers become offsets to bytes. in this mode the step rate for the start address registers if halved making for smoother panning.
page 28 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 5.2.1 registers figure 5-3: screen 1 start address registers in landscape mode these two registers form the offset to the word in display memory to be displayed in the upper left corner of the screen. screen 1 is always the top of a display frame, starting in the upper left corner and descending downward. changing these registers by one will shift the display 2 to 16 pixels, depending on the current color depth. in swivelview mode these registers form the offset to the byte in display memory from where screen 1 will start displaying. changing these registers in swivelview mode will result in a shift of 1 to 8 pixels depending on the color depth. refer to table 5-1: number of pixels panned using start address to see the minimum number of pixels affected by a change of one to these registers 5.2.2 examples for the following examples assume the display system has been set up to view a 320x240 4 bpp image in a 256x64 viewport. refer to section 2, initialization on page 8 and section 5.1, virtual display on page 25 for assistance with these settings. the examples are shown in a c-like syntax. example 3: panning (right and left) to pan to the right increase the start address value by one. to pan to the left decrease the start address value. keep in mind that, with the exception of 8 bit-per-pixel swivelview mode, the display will jump by more than one pixel as a result of changing the start address registers. reg[0ch] screen 1 display start address 0 (lsb) start addr bit 7 start addr bit 6 start addr bit 5 start addr bit 4 start addr bit 3 start addr bit 2 start addr bit 1 start addr bit 0 reg[0dh] screen 1 display start address 1 (msb) reserved start addr bit 14 start addr bit 13 start addr bit 12 start addr bit 11 start addr bit 10 start addr bit 9 start addr bit 8 table 5-1: number of pixels panned using start address color depth (bpp) pixels per word landscape mode number of pixels panned swivelview mode number of pixels panned 116 16 8 28 8 4 44 4 2 82 2 1
epson research and development page 29 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 panning to the right. startword = getstartaddress(); startword ++; setstartaddress(startword); panning to the left. startword = getstartaddress(); startword --; if (startword < 0) startword = 0; setstartaddress(startword); example 4: scrolling (up and down) to scroll down, increase the value in the screen 1 display start address register by the number of words in one virtual scan line. to scroll up, decrease the value in the screen 1 display start address register by the number of words in one virtual scan line. step 1: determine the number of words in one virtual scanline. bytes_per_line = pixels_per_line / pixels_per_byte = 320 / 2 = 160 words_per_line = bytes_per_line / 2 = 160 /2 = 80 step 2: scroll up or down to scroll up. startword = getstartaddress(); startword -= words_per_line; if (startword < 0) startword = 0; setstartaddress(startword); to scroll down. startword = getstartaddress(); startword += words_per_line; setstartaddress(startword); long getstartaddress (void) { return (reg[0d] * 256 +reg[0c]; } void setstartaddress (long startword) { reg[0c] = startword & 0xff; reg[0d] = startword / 256; }
page 30 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 5.3 split screen occasionally the need arises to display two different but related images. for example, a game where the main play area requires rapid updates and game status displayed at the bottom of the screen. the status area updates far less often than the main play area. the split screen feature of the sed1374 allows a programmer to setup a display for such an application. the figure below illustrates setting a 320x240 panel to have image 1 displaying from scan line 0 to scan line 199 and image 2 displaying from scan line 200 to scan line 239. although this example picks specific values, the split between image 1 and image 2 can occur anywhere on the display. figure 5-4: 320x240 single panel for split screen in split screen operation image 1" is taken from the display memory location pointed to by the screen 1 start address registers and always is located at the top of the screen. image 2" is taken from the display memory location pointed to by the screen 2 start address registers and begins after screen 1 vertical size lines. scan line 0 image 1 ... scan line 199 scan line 200 image 2 ... scan line 239 screen 1 vertical size registers = 199 lines
epson research and development page 31 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 5.3.1 registers the other registers required for split screen operations, reg[0ch] through reg[0dh] (screen 1 start word address) and reg[0fh] through reg[10h] (screen 2 start word address) are described in section 5.2.1 on page 28. figure 5-5: screen 1 vertical size these two registers form a ten bit value which determines the size of screen 1. when the vertical size is equal to or greater than the physical number of lines being displayed there is no visible effect on the display. when the vertical size value is less than the number of physically displayed lines, display operation works like this: 1. from the end of vertical non-display (beginning of a frame) to the number of lines in- dicated by vertical size the display data will come from the memory pointed to by the screen 1 display start address. 2. after vertical size lines have been displayed the system will begin displaying data from screen 2 display start address memory. screen 1 memory is always displayed at the top of the screen followed by screen 2 memory. the start address for the screen 2 image may be lower in memory than that of screen 1 (i.e. screen 2 could be coming from offset 0 in the display buffer while screen 1 was coming from an offset located several thousand bytes into the display buffer). while not particu- larly useful, it is even possible to set screen 1 and screen 2 to the same address. reg[13] screen 1 vertical size (lsb) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[14] screen 1 vertical size (msb) n/a n/a n/a n/a n/a n/a bit 9 bit 8
page 32 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 figure 5-6: screen 2 start address registers in landscape mode these two registers form the offset to the word in display memory to be displayed immediately after the screen 1 area of display memory. changing these registers by one will shift the display 2 to 16 pixels, depending on the current color depth. split screen operation is not supported in swivelview mode, leaving this register un-used. refer to table 5-1:, number of pixels panned using start address, on page 28 to see the minimum number of pixels affected by a change of one to these registers 5.3.2 examples example 5: display 200 scanlines of image 1 and 40 scanlines of image 2. image 2 is located first (offset 0) in the display buffer followed immediately by im- age 1. assume a 320x240 display and a color depth of 4 bpp. 1. calculate the screen 1vertical size register values. vertical_size = 200 = c8h write the vertical size lsb, reg[13h], with c8h and vertical size msb, reg[14h], with a 00h. 2. calculate the screen 1 start word address register values. screen 2 is located first in display memory, therefore we must calculate the number of bytes taken up by the screen 2 data. bytes_per_line = pixels_per_line / pixels_per_byte = 320 / 2 = 160 total bytes = bytes_per_line x lines = 160 x 40 = 6400. screen 2 requires 6400 bytes (0 to 6399) therefore the start address offset for screen 1 must be 6400 bytes. (6400 bytes = 3200 words = c80h words) set the screen 1 start word address msb, reg[0dh], to 0ch and the screen 1 start word address lsb, reg[0ch], to 80h. reg[0fh] screen 2 display start address 0 (lsb) start addr bit 7 start addr bit 6 start addr bit 5 start addr bit 4 start addr bit 3 start addr bit 2 start addr bit 1 start addr bit 0 reg[10h] screen 2 display start address 0 (lsb) reserved start addr bit 14 start addr bit 13 start addr bit 12 start addr bit 11 start addr bit 10 start addr bit 9 start addr bit 8
epson research and development page 33 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 3. calculate the screen 2 start word address register values. screen 2 display data is coming from the very beginning of the display buffer. all there is to do here is ensure that both the lsb and msb of the screen 2 start word address registers are set to zero.
page 34 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 6 lcd power sequencing and power save modes 6.1 lcd power sequencing lcd power sequencing allows the lcd power supply to discharge prior to shutting down the lcd logic signals. power sequencing is required to prevent long term damage to the panel and to avoid unsightly lines on power-down and power-up. the sed1374 performs automatic power sequencing when the lcd is enabled or disabled through the power save bits in reg[03h] or in response to a hardware power save request. for most applications the internal power sequencing is the appropriate choice. proper lcd power sequencing dictates there must be a time delay between the lcd power being disabled and the lcd signals being shut down. during power-up the lcd signals must be active prior to or when power is applied to the lcd. the time intervals vary depending on the power supply design. one frame after a power save mode has been enabled the sed1374 disables lcd power. one hundred and twenty seven frames later the lcd logic signals are disabled. there may be situations where the internal time delay is insufficient to discharge the lcd power supply before the lcd signals are shut down. this section details the sequences to manually power-up and power-down the lcd interface. during the power up sequence the lcd power should not be applied before the lcd logic signals. usually the power and logic can begin at the same time. there may be times when the lcd logic signals must begin before lcd power is applied. 6.2 registers the lcd power (lcdpwr) override bit forces lcd power to inactive one frame after being toggled. the lcd logic signals to the panel are still active and are controlled by enabling or disabling a power save mode. after enabling a power save mode there are still 128 frames before lcd logic signals are disabled. the hardware power save enable bit must be set in order for a hardware power save request (on gpio0) to have any affect. without enabling this bit toggling gpio0 will have no power save effect. the software power save bits are used to set the software power save mode. the two valid states are "00" for power save and "11" for normal operation. reg[03h] mode register 2 lcdpwr override hardware power save enable software power save bit 1 software power save bit 0
epson research and development page 35 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 6.3 lcd enable/disable the descriptions below cover manually powering the lcd panel up and down. use them only if the power supply connected to the panel requires more than 127 frames to discharge on power-down or if the panel requires starting the lcd logic well in advance of enabling lcd power. power on/enable sequence the following is the recommended sequence for manually powering-up an lcd panel. these steps would be used if lcd power had to be applied later than lcd logic. 1. set reg[03h] bit 3, lcdpwr override, to "1" (ensures that lcd power is disabled). 2. enable lcd logic. this is done by either setting gpio0 to 0 for hardware power save mode and/or by setting reg[03h] bits 1-0, software power save, to "11". 3. count "x" vertical non-display periods. "x" corresponds the length of time lcd logic must be enabled before lcd power-up, converted to the equivalent vertical non-display periods. for example, at 72 hz count- ing 36 non-display periods results in a one half second delay. 4. set reg[03h] bit 3 to "0" (enable lcd power). power off/disable sequence the following is the recommended sequence for manually powering-down an lcd panel. these steps would be used if power supply timing requirements were larger than the timings built into the sed1374 power disable sequence. 1. set reg[03h] bit 3, lcdpwr override, to "1" (disables lcd power). 2. count "x" vertical non-display periods. "x" corresponds to the power supply discharge time converted to the equivalent verti- cal non-display periods. 3. disable the lcd logic by setting the software power save in reg[03h] or setting hardware power save via gpio0.
page 36 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 7 swivelview? 7.1 introduction to swivelview many of todays applications use the lcd panel in a portrait orientation. in this case it becomes necessary to rotate the displayed image. this rotation can be done by software at the expense of performance or, as with the sed1374, it can be done by hardware with no performance penalty. there are two hardware rotated modes: default swivelview mode and alternate swivelview mode. 7.2 default swivelview mode default swivelview mode requires the portrait image width be a power of two, e.g. a 240- line panel requires a minimum virtual image width of 256. this mode should be used whenever the required virtual image can be contained within the integrated display buffer (i.e. virtual image size 40k bytes), as it consumes less power than the alternate swivelview mode. for example, the panel size is 320x240 and the display mode is 4 bit-per-pixel. the virtual image size is 320x256 which can be contained within the 40k byte display buffer. default swivelview mode also requires memory clock (mclk) 3 pixel clock (pclk).
epson research and development page 37 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 the following figures show how the programmer sees a 240x320 image and how the image is displayed. the application image is written to the sed1374 in the following sense: aCbCcCd. the display is refreshed by the sed1374 in the following sense: b-d-a-c. figure 7-1: relationship between the screen image and the image refreshed by sed1374 7.3 alternate swivelview mode alternate swivelview mode may be used when the virtual image size of default swivelview mode cannot be contained in the 40k byte integrated frame buffer. for example, when the panel size is 240x160 and the display mode is 8 bit-per-pixel the minimum virtual image size for default swivelview mode would be 240x256 which requires 60k bytes. alternate swivelview mode requires a panel size of only 240x160 which needs only 38,400 bytes. alternate swivelview mode requires the memory clock (mclk) to be at least twice the frequency of the pixel clock (pclk), i.e. mclk 3 2 x pclk. because of this, the power consumption in alternate swivelview mode is higher than in default swivelview mode. the following figure shows how the programmer sees a 240x160 image and how the image is being displayed. the application image is written to the sed1374 in the following sense: aCbCcCd. the display is refreshed by the sed1374 in the following sense: b-d-a-c. 256 256 image seen by programmer = image in display buffer 320 swivelview window 320 240 ab c d d c b a 240 start address swivelview window display e e image refreshed by sed1374 start address physical memory
page 38 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 figure 7-2: relationship between the screen image and the image refreshed by sed1374 image seen by programmer = image in display buffer 240 swivelview window 240 160 ab c d d c b a 160 start address swivelview window display image refreshed by sed1374 start address physical memory
epson research and development page 39 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 7.4 registers this section describes the registers used to set swivelview mode operation. the start address registers must be set for swivelview mode. in swivelview mode the offset contained in the start address points to a byte. the line byte count register informs the sed1374 of the stride, in bytes, between two consecutive lines of display in swivelview mode. the line byte count register only affects swivelview mode operation. the contents of this register are ignored when the sed1374 is in landscape display mode. the swivelview mode register contains several items for swivelview mode support. the first is the swivelview mode enable bit. when this bit is 0 the sed1374 is in landscape mode and the remainder of the settings in this register as well as the line byte count in reg[1ch] are ignored. when this bit is a 1 swivelview mode is enabled. there are two swivelview mode display schemes available. the swivelview mode select bit selects between the default mode and the "alternate mode. the default mode offers the lowest power consumption with some display mode limitations. the alternate mode uses more power but offers greater display flexibility. reg[0ch] screen 1 start word address lsb bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[0dh] screen 1 start word address msb reserved bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 reg[1ch] line byte count register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[1bh] swivelview mode register swivelview mode enable swivelview mode select n/a n/a n/a reserved swivelview mode pixel clock select bit 1 swivelview mode pixel clock select bit 0
page 40 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 in return for using less power the default swivelview imposes the restriction that the swivelview display width must be a power of two (e.g. 64, 128, 256, 512). the physical display does not need to be a power of two wide. the difference can be treated as a virtual width. in addition, scrolling in default swivelview mode is restricted to two lines. alternate swivelview mode requires more power as the internal clocks are run faster. in return for a higher power consumption the "power of two" width-restriction is removed. also, the display can be scrolled one line at a time. one benefit to removing the power of two width restriction is that panels which might not have been able to be used in swivelview mode due to a lack of memory may now be used. clocking for the sed1374 works as follows: an external clock source supplies clki, the input clock. clki is routed through the input clock divide from mode register 1 (reg[02h] bit 4) and is either divided by two or passed on. this signal is now the operating clock (clk) from which pclk and mclk are derived. in swivelview mode the clk signal may be divided down by 0, 2, 4, or 8 before pclk and mclk are derived. swivelview mode offers additional clocking control over landscape mode. one reason for the additional support is to maintain a register set that was backward compatible with previous epson lcd controllers. when setting swivelview mode, it is possible that the horizontal and vertical non-display time must be recalculated as a result of pclk changing in response to the swivelview mode selected or the clock selection method.
epson research and development page 41 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 7.5 limitations the only limitation to using swivelview mode on the sed1374 is that split screen operation is not supported. a comparison of the two swivelview modes is as follows: table 7-1: default and alternate swivelview mode comparison item default swivelview mode alternate swivelview mode memory requirements the width of the rotated image must be a power of 2. in most cases, a virtual image is required where the right-hand side of the virtual image is unused and memory is wasted. for example, a 160x240x8bpp image would normally require only 38,400 bytes - possible within the 40k byte address space, but the virtual image is 256x240x8bpp which needs 61,440 bytes - not possible. does not require a virtual image. clock requirements clk need only be as fast as the required pclk. mclk, and hence clk, need to be 2x pclk. for example, if the panel requires a 3mhz pclk, then clk must be 6mhz. note that 25mhz is the maximum clk, so pclk cannot be higher than 12.5mhz in this mode. power consumption lowest power consumption. typically 20% higher than default mode. panning vertical panning in 2-line increments. vertical panning in 1-line increments. performance nominal performance. slightly higher performance than default mode.
page 42 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 7.6 examples example 6: enable default swivelview mode for a 320x240 panel at 4 bpp. before switching to swivelview mode from landscape mode, display memory should be cleared to make the user perceived transition smoother. images in display memory are not rotated automatically by hardware and the garbled image would be visible for a short period of time if video memory is not cleared. in this example we will bypass having to recalculate the horizontal and vertical non-display times (frame rate) by selecting the default swivelview mode scheme. 1. calculate and set the screen 1 start word address register. offsetbytes = (width x bitsperpixel / 8) - 1 = (256 x 4 / 8) -1 = 127 = 007fh (width is the width of the swivelview mode display - in this case the next power of two greater than 240 pixels or 256.) set screen1 display start word address lsb (reg [0ch]) to 7fh and screen1 dis- play start word address msb (reg[0dh]) to 00h. 2. calculate the line byte count the line byte count also must be based on the power of two width. linebytecount = width x bitsperpixel / 8 = 256 x 4 / 8 = 128 = 80h. set the line byte count (reg[1c]) to 80h. 3. enable swivelview mode. this example uses the default swivelview mode scheme. if we do not change the swivelview mode pixel clock select bits then we will not have to recalculate the non- display timings to correct the frame rate. write 80h to the swivelview mode register (reg[1bh]). the display is now configured for swivelview mode use. offset zero into display memory will corresponds to the upper left corner of the display. the only thing to keep in mind is that the count from the first pixel of one line to the first pixel of the next line (refered to as the "stride") is 128 bytes.
epson research and development page 43 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 example 7: enable alternate swivelview mode for a 320x240 panel at 4 bpp. note as we have to perform a frame rate calculation for this mode we need to know the fol- lowing panel characteristics: 320x240 8-bit color to be run at 80 hz with a 16 mhz in- put clock. as in the previous example, before switching to swivelview mode, display memory should be cleared. images in display memory are not rotated automatically by hardware and the garbled image would be visible for a short period of time if video memory is not cleared. 1. calculate and set the screen 1 start word address register. offsetbytes = (width x bitsperpixel / 8) - 1 = (240 x 4 / 8) - 1 = 119 = 0077h set screen1 display start word address lsb (reg [0ch]) to 77h and screen1 dis- play start word address msb (reg[0dh]) to 00h. 2. calculate the line byte count. linebytecount = width x bitsperpixel / 8 = 240 x 4 / 8 = 120 = 78h. set the line byte count (reg[1c]) to 78h. 3. enable swivelview mode. this example uses the alternate swivelview mode scheme. we will not change the pixel clock select settings. write c0h to the swivelview mode register (reg[1bh]) 4. recalculate the frame rate dependents. this example assumes the alternate swivelview mode scheme. in this scheme, without touching the pixel clock select bits the pclk value will be equal to clk/2. note these examples dont use the pixel clock select bits. the ability to divide the pclk value down further than the default values was added to the sed1374 to support swivelview mode on very small panels. the pixel clock value has changed so we must calculate horizontal and vertical non-display times to reach the desired frame rate. rather than perform the frame rate calculations here i will refer the reader to the frame rate calculations in frame rate calculation on page 9 and simply "arrive" at the following: horizontal non-display period = 88h vertical non-display period = 03h
page 44 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 plugging the values into the frame rate calculations yields: for this example the horizontal non-display register [reg[08h]) needs to be set to 07h and the vertical non-display register (reg[0ah]) needs to be set to 03h. the 16,000,000/2 in the formula above represents the input clock being divided by two when this alternate swivelview mode is selected. with the values given for this example we must ensure the input clock divide bit (reg[02h] b4) is reset (with the given values it was likely set as a result of the frame rate calculations for landscape display mode). no other registers need to be altered. the display is now configured for swivelview mode use. offset zero of display memory corresponds to the upper left corner of the display. display memory is accessed exactly as it was for landscape mode. as this is the alternate swivelview mode the power of two stride issue encountered with the default swivelview mode is no longer an issue. the stride is the same as the swivelview mode width. in this case 120 bytes. framerate pclk hdp hndp + () vdp vndp + () ---------------------------------------------------------------------------------------- - = framerate 16 000 000 ,, 2 ----------------------------- - 320 88 + () 240 3 + () ------------------------------------------------------- 8 0 . 6 9 ==
epson research and development page 45 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 example 8: pan the above swivelview mode image to the right by 4 pixels then scroll it up by 6 pixels. to pan by four pixels the start address needs to be advanced. 1. calculate the amount to change start address by. bytes = pixels x bitsperpixel / 8 = 4 x 4 / 8 = 2 bytes 2. increment the start address registers by the just calculated value. in this case the value writen to the start address register will be 81h (7fh + 2 = 81h) to scroll by 4 lines we have to change the start address by the offset of four lines of display. 1. calculate the amount to change start address by. bytesperline = linebytecount = 128 bytes = lines x bytesperline = 4 x 128 = 512 = 200h 2. increment the start address registers by the just calculated value in this case 281h (81h + 200h) will be written to the screen 1 start word address reg- ister pair. set screen1 display start word address lsb (reg[0ch]) to 81h and screen1 display start word address msb (reg[0dh]) to 02h.
page 46 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 8 identifying the sed1374 as there are several similar products in the 135x and 137x lcd controller families, which can for the most part share the same code base. it may be important for a program to identify between products at run time. identification of the sed1374 can be performed any time after the system has been powered up by reading reg[00h], the revision code register. the six most significant bits form the product identification code and the two least significant bits form the product revision. from reset (power on) the steps to identifying the sed1374 are as follows: 1. read reg[00h]. mask off the lower two bits, the revision code, to obtain the product code. 2. the product code for the sed1374 is 018h.
epson research and development page 47 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 9 hardware abstraction layer (hal) 9.1 introduction the hal is a processor independent programming library provided by epson with support for several different computing platforms. the hal was developed to aid implementation of internal test programs and provides an easy, consistent method of programming sed135x, sed137x, and sed138x products on different processor platforms. the hal keeps sample code simpler, although end programmers may find the hal functions to be limited in their scope, and may wish to ignore the hal. 9.2 api for 1374hal the following is a description of the hal library. updates and revisions to the hal may include new functions not included in the following documentation. the original design philosophy of the hal was that function return values would be status of the call. most functions simple return err_ok. if a value had to be returned then a pointer of the appropriate type was passed to the function. 9.2.1 initialization the following section describes the hal functions dealing with sed1374 initialization. typically a programmer has only to concern themselves with calls to seregisterdevice() and sesetinit(). int seregisterdevice(const lphal_struc lphalinfo, int * pdevid) description : registers the sed1374 device parameters with the hal library. the device param- eters have been configured with address range, register values, desired frame rate, etc., and have been saved in the hal_struct structure pointed to by lphalinfo. parameters: lphalinfo - pointer to hal_struct information structure pdevice - pointer to the integer to receive the device id return value: err_ok - operation completed with no problems err_unknown_device - the hal was unable to find an sed1374. note no sed1374 registers are changed by calling seregisterdevice().
page 48 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 sesetinit(int devid) description: configures the sed1374 for operation. this function sets all the sed1374 control registers to their default values. initialization of the sed1374 was made a stand-alone step to accommodate those programs (e.g. 1374play.exe) which needed the ability to start and examine the system before changing register contents. parameters: devid - registered device id return value: err_ok - operation completed with no problems note after this call the look-up table will be set to a default state appropriate to the display type. int seinithal(void) description: this function initializes variables used by the hal library. call this function once when the application starts. normally, programmers will never need to call seinithal(). on pc platforms, sereg- isterdevice() automatically calls seinithal(). consecutive calls to seregister- device() will not call seinithal() again. on non-pc platforms the start-up code, supplied by seiko, will call seinithal(). if support code for a new cpu platform is written the programmer must ensure that seinithal() is called prior to calling other hal functions. parameters: none return value: err_ok - operation completed with no problems
epson research and development page 49 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 9.2.2 miscellaneous hal support functions in this group do not fit into any specific category of support. they provide a miscellaneous range of support for working with the sed1374 int segetid(int devid, int * pid) description: reads the sed1374 revision code register to determine the chip product and revisions. the interpreted value is returned in pid. parameters: devid - registered device id pid - pointer to an integer which will receive the controller id. sed1374 values returned in pid are: - id_sed1374 - id_sed1374f0a - id_unknown other hal libraries will return their respective controller ids upon detection of their controller. return value: err_ok - operation completed with no problems err_unknown_device - the hal was unable to identify the display controller. returned when pid returns id_unknown. void segethalversion(const char ** pversion, const char ** pstatus, const char **pstatusrevision) description: retrieves the hal library version information. the return values are ascii strings. a typical return would be: 1.01 b 5 - hal version 1.01, 'b' is the beta designator, this example would be beta 5. if pstatus is null then pstatusrevision should be null too. parameters: pversion - pointer to string to return the version in. - must point to an allocated string of size ver_size pstatus - pointer to a string to return the release status in. - must point to an allocated string of size status_size pstatusrevision - pointer to return the current revision of status. - must point to an allocated string of size stat_rev_size return value: none
page 50 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 int sesetbitsperpixel(int devid, int bitsperpixel) description: this routine sets the color depth the sed1374 displays in. after performing validity checks to ensure the requested video mode can be set the appropriate registers are changed and the look-up table is set its default values appropriate to the color depth. this call is similar to a mode set call on a standard vga. parameter: devid - registered device id bitsperpixel - desired color depth in bits per pixel. - valid arguments are: 1, 2, 4, and 8. return value: err_ok - operation completed with no problems err_failed- possible causes for this error include: 1) the desired frame rate may not be attainable with the specified input clock 2) the combination of width, height and color depth may require more memory than is available on the sed1374. int segetbitsperpixel(int devid, int * pbitsperpixel) description: this function reads the sed1374 registers to determine the current color depth and returns the result in pbitsperpixel . parameters: devid - registered device id pbitsperpixel - pointer to an integer to receive current color depth. - return values will be: 1, 2, 4, or 8. return value: err_ok - operation completed with no problems int segetbytesperscanline(int devid, int * pbytes) description: returns the number of bytes use by each scan line in the integer pointed to by pbytes. the number of bytes per scanline will include the number of non-displayed bytes, if applicable. prior to calling segetbytesperscanline() the sed1374 control registers must have been correctly initialized. parameters: devid - registered device id pbytes - pointer to an integer to receive the number of bytes per scan line return value: err_ok - operation completed with no problems
epson research and development page 51 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 int segetscreensize(int devid, int * width, int * height) description: retrieves the width and height in pixels of the display surface. the width and height are derived by reading the horizontal and vertical size registers and calculating the dimensions. virtual dimensions are not taken into account for this calculation. when the display is in swivelview mode the dimensions will be swapped. (i.e. a 640x480 display in swivelview mode will return a width and height of 480 and height of 640. parameters: devid - registered device id width - pointer to an integer to receive the display width height - pointer to an integer to receive the display height return value: err_ok - the operation completed successfully int sedelay(int milliseconds) description: this function will delay for the length of time specified in milliseconds before returning to the caller. this function was originally intended for non-pc platforms. information about how to access the timers was not always available however we do know frame rate and can use that for timing calculations. the sed1374 registers must be initialized for this function to work correctly. on the pc platform this is simply a call to the c timing functions and is therefore independent of the register settings. parameters: devid - registered device id milliseconds- time to delay in seconds return value: err_ok - operation completed with no problems err_failed- returned on non-pc platforms when the sed1374 registers have not bee initialized int segetlastusablebyte(int devid, long * pllastbyte) description: this functions returns a pointer, as a long integer, to the last byte of usable display memory. this function is a holdover from 135x products which support different amounts of memory. parameters: devid - registered device id pllastbyte - pointer to a long integer to receive the offset to the last byte of display memory
page 52 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 return value: err_ok - operation completed with no problems int sesethightperformance(int devid, bool onoff) description: this function call enables or disable the high performance bit of the sed1374. when high performance is enabled then mclk equals pclk for all video display resolutions. in the high performance state cpu to video memory performance is improved at the cost of higher power consumption. when high performance is disabled then mclk ranges from pclk/1 at 8 bit-per-pixel to pclk/8 at 1 bit-per-pixel. without high performance cpu to video memory accessed speeds are slower but the sed1374 uses less power. parameters: devid - registered device id onoff - a boolean value (defined in hal.h) to indicate whether to enable of disable high performance. return value: err_ok - operation completed with no problems 9.2.3 advanced hal functions advanced hal functions include the functions to support split, virtual and rotated displays. while the concept for using these features is advanced the hal makes actually using them easy. int sesethwrotate(int devid, int rotate) description: this function sets the rotation scheme according to the value of 'rotate'. when swivelview mode is selected as the display rotation the scheme selected is the 'non- x2' scheme. parameters: devid - registered device id rotate - the direction to rotate the display - valid arguments for rotate are: landscape and portrait. return value: err_ok - operation completed with no problems err_failed - the operation failed to complete. the most likely reason for failing to set a swivelview mode is an inability to set the desired frame rate when setting the mode. other factors which can cause a failure include having configured for a 0 hz frame rate or specifying something other than landscape or portrait for the rotation scheme.
epson research and development page 53 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 int sesplitinit(int devid, word scrn1addr, word scrn2addr) description: this function prepares the system for split screen operation. in order for split screen to function the starting address in display buffer for the upper portion(screen 1) and the lower portion (screen 2) must be specified. screen 1 is always displayed above screen 2 on the display regardless of the location of their start addresses. parameters: devid - registered device id scrn1addr - offset, in bytes, to the start of screen 1 scrn2addr - offset, in bytes, to the start of screen 2 return value: err_ok - operation completed with no problems note it is assumed that the system has been properly initialized prior to calling sesplitinit(). int sesplitscreen(int devid, int screen, int visiblescanlines) description: changes the relevant registers to adjust the split screen according to the number of visible lines requested. 'whichscreen' determines which screen, 1 or 2, to base the changes on. the smallest surface screen 1 can display is one line. this is due to the way the sed1374 operates. setting screen 1 vertical size to zero results in one line of screen 1 being displayed. the remainder of the display will be screen 2 image. parameters: devid - registered device id screen - must be set to 1 or 2 (or use the constants screen1 or screen2) visiblescanlines- number of lines to display for the selected screen return value: err_ok - operation completed with no problems err_hal_bad_arg- argument visiblescanlines is negative or is greater than vertical panel size or whichscreen is not screen1 or screen 2. note sesplitinit() must be called before calling sesplitscreen()
page 54 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 int sevirtinit(int devid, dword virtx, dword * virty) description: this function prepares the system for virtual screen operation. the programmer passes the desired virtual width, in pixels, as virtx . when the routine returns virty will contain the maximum number of line that can be displayed at the requested virtual width. parameter: devid - registered device id virtx - horizontal size of virtual display in pixels. (must be greater or equal to physical size of display) virty - pointer to an integer to receive the maximum number of displayable lines of 'virtx' width. return value: err_ok - operation completed with no problems err_hal_bad_arg - returned in three situations: 1) the virtual width (virtx) is greater than the largest possible width (virtx varies with color depth and ranges from 4096 pixels wider than the panel at 1 bit-per-pixel down to 512 pixels wider than the panel at 8 bit-per-pixel) 2) the virtual width is less than the physical width or 3) the maximum number of lines becomes less than the physical number of lines note the system must have been properly initialized prior to calling sevirtinit() int sevirtmove(int devid, int screen, int x, int y) description: this routine pans and scrolls the display after a virtual display has bee setup. in the case where split screen operation is being used the whichscreen argument specifies which screen to move. the x and y parameters specify, in pixels, the starting location in the virtual image for the top left corner of the applicable display. parameter: devid - registered device id screen - must be set to 1 or 2, or use the constants screen1 or screen2, to identify which screen to base calculations on x - new starting x position in pixels y - new starting y position in pixels return value: err_ok - operation completed with no problems err_hal_bad_arg- there are several reasons for this return value: 1) whichscreen is not screen1 or screen2. 2) the y argument is greater than the last available line less the screen height. note sevirtinit() must be been called before calling sevirtmove().
epson research and development page 55 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 9.2.4 register / memory access the register/memory access functions provide access to the sed1374 registers and display buffer through the hal. int segetreg(int devid, int index, byte * pvalue) description: reads the value in the register specified by index. parameters: devid - registered device id index - register index to read pvalue - pointer to a byte to receive the register value. return value: err_ok - operation completed with no problems int sesetreg(int devid, int index, byte value) description: writes value specified in value to the register specified by index. parameters: devid - registered device id index - register index to set value - value to write to the register return value: err_ok - operation completed with no problems int sereaddisplaybyte(int devid, dword offset, byte *pbyte) description: reads a byte from the display buffer at the specified offset and returns the value in pbyte. parameters: devid - registered device id offset - offset, in bytes from start of the display buffer, to read from pbyte - pointer to a byte to return the value in return value: err_ok - operation completed with no problems err_hal_bad_arg - if the value for addr is greater 40 kb
page 56 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 int sereaddisplayword(int devid, dword offset, word *pword) description: reads a word from the display buffer at the specified offset and returns the value in pword. parameters: devid - registered device id offset - offset, in bytes from start of the display buffer, to read from pword - pointer to a word to return the value in return value: err_ok - operation completed with no problems. err_hal_bad_arg - if the value for addr is greater than 40 kb. int sereaddisplaydword(int devid, dword offset, dword *pdword) description: reads a dword from the display buffer at the specified offset and returns the value in pdword. parameters: devid - registered device id offset - offset from start of the display buffer to read from pdword - pointer to a dword to return the value in return value: err_ok - operation completed with no problems. err_hal_bad_arg - if the value for addr is greater than 40 kb. int sewritedisplaybytes(int devid, dword offset, byte value, dword count) description: this routine writes one or more bytes to display buffer at the offset specified by addr. if a count greater than one is specified all bytes will have the same value. parameters: devid - registered device id offset - offset from start of the display buffer to start writing at value - byte value to write count - number of bytes to write return value: err_ok - operation completed with no problems err_hal_bad_arg - if the value for addr or the value of addr plus count is greater than 40 kb.
epson research and development page 57 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 int sewritedisplaywords(int devid, dword offset, word value, dword count) description: writes one or more words to the display buffer at the offset specified by addr. if a count greater than one is specified all words will have the same value. parameters: devid - registered device id offset - offset from start of the display buffer value - word value to write count - number of words to write return value: err_ok - operation completed with no problems err_hal_bad_arg - if the value for addr or if addr plus count is greater than 40 kb. int sewritedisplaydwords(int devid, dword offset, dword value, dword count) description: writes one or more dwords to the display buffer at the offset specified by addr. if a count greater than one is specified all dwordss will have the same value. parameters: devid - registered device id offset - offset from start of the display buffer value - dword value to write count - number of dwords to write return value: err_ok - operation completed with no problems err_hal_bad_arg - if the value for addr or if addr plus count is greater than 40 kb.
page 58 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 9.2.5 power save this section covers the hal functions dealing with the power save features of the sed1374. int sesetpowersavemode(int devid, int pwrsavemode) description: this function sets on the sed1374s software selectable power save modes. parameters: devid - a registered device id pwrsavemode - integer value specifying the desired power save mode. acceptable values for pwrsavemode are: 0 - (software power save mode) in this mode registers and memory are read/writable. lcd output is forced low. 3 - (normal operation) all outputs function normally. return value: err_ok - operation completed with no problems 9.2.6 drawing the drawing routines cover hal functions that deal with displaying pixels, lines and shapes. int sedrawline(int devid, int x1, int y1, int x2, int y2, dword color) description: this routine draws a line on the display from the endpoints defined by x1,y1 to the endpoint x2,y2 in the requested 'color'. currently sedrawline() only draws horizontal and vertical lines. parameters: device - registered device id. (x1, y1) - first endpoint of the line in pixels (x2, y2) - second endpoint of the line in pixels (see note below) color - color to draw with. 'color' is an index into the lut. return value: err_ok - operation completed with no problems
epson research and development page 59 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 int sedrawrect(int devid, long x1, long y1, long x2, long y2, dword color, bool solidfill) description: this routine draws and optionally fills a rectangular area of display buffer. the upper right corner is defined by x1,y1 and the lower right corner is defined by x2,y2. the color, defined by color , applies both to the border and to the optional fill. parameters: devid - registered device id x1, y1 - top left corner of the rectangle (in pixels) x2, y2 - bottom right corner of the rectangle (in pixels) color - the color to draw the rectangle outline and fill with - color is an index into the look-up table. solidfill - flag whether to fill the rectangle or simply draw the border. - set to 0 for no fill, set to non-0 to fill the inside of the rectangle return value: err_ok - operation completed with no problems. 9.2.7 lut manipulation these functions deal with altering the color values in the look-up table. int sesetlut(int devid, byte *plut, int count) description: this routine writes one or more lut entries. the writes always start with look-up table index 0 and continue for 'count' entries. a look-up table entry consists of three bytes, one each for red, green, and blue. the color information is stored in the four least significant bits of each byte. parameters: devid - registered device id plut - pointer to an array of byte lut[16][3] lut[x][0] == red component lut[x][1] == green component lut[x][2] == blue component count - the number of lut entries to write. return value: err_ok - operation completed with no problems
page 60 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 int segetlut(int devid, byte *plut, int count) description: this routine reads one or more lut entries and puts the result in the byte array pointed to by plut. a look-up table entry consists of three bytes, one each for red, green, and blue. the color information is stored in the four least significant bits of each byte. parameters: devid - registered device id plut - pointer to an array of byte lut[16][3] - plut must point to enough memory to hold 'count ' x 3 bytes of data. count - the number of lut elements to read. return value: err_ok - operation completed with no problems int sesetlutentry(int devid, int index, byte *pentry) description: this routine writes one lut entry. unlike sesetlut, the lut entry indicated by ' index' can be any value from 0 to 15. a look-up table entry consists of three bytes, one each for red, green, and blue. the color information is stored in the four least significant bits of each byte. parameters: devid - registered device id index - index to lut entry (0 to 15) plut - pointer to an array of three bytes. return value: err_ok - operation completed with no problems int segetlutentry(int devid, int index, byte *pentry) description: this routine reads one lut entry from any index. a look-up table entry consists of three bytes, one each for red, green, and blue. the color information is stored in the four least significant bits of each byte. parameters: devid - registered device id index - index to lut entry (0 to 15) pentry - pointer to an array of three bytes return value: err_ok - operation completed with no problems
epson research and development page 61 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 10 sample code 10.1 introduction included in the sample code section are two examples of programing the sed1374. the first sample uses the hal to draw a red square, wait for user input then rotates to swivelview mode and draws a blue square. the second sample code performs the same procedures but directly accesses the registers of the sed1374. these code samples are for example purposes only. 10.1.1 sample code using the sed1374 hal api /* **=========================================================================== ** sample1.c - sample code demonstating a program using the sed1374 hal. **------------------------------------------------------------------------- ** created 1998, vancouver design centre ** copyright (c) 1998 epson research and development, inc. ** all rights reserved. **------------------------------------------------------------------------- ** ** the hal api code is configured for the following: ** ** 320x240 single color 8-bit stn (format 2) ** 4 bpp - 70 hz frame rate (25 mhz clki) ** high performance enabled ** **=========================================================================== */ #include #include #include #include #include "hal.h" /* structures, constants and prototypes. */ #include "appcfg.h" /* hal configuration information. */ /*--------------------------------------------------------------------------*/ void main(void) { int chipid; int device; /* ** initialize the hal. ** the call to seregisterdevice() actually prepares the hal library ** for use. the sed1374 is not accessed. */ if (err_ok != seregisterdevice(&halinfo, &device))
page 62 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 { printf("\nerror: could not register sed1374 device."); exit(1); } /* ** get the product code to verify this is an sed1374. ** note: if the sed1374 design is modified then the ** product identification change. additional ids ** will have to be checked for. */ segetid(device, &chipid); if (id_sed1374f0a != chipid) { printf("\nerror: did not detect an sed1374."); exit(1); } /* ** initialize the sed1374. ** this step programs the registers with values taken from ** the halinfo struct in appcfg.h. */ if (err_ok != sesetinit(device)) { printf("\nerror: could not initialize device."); exit(1); } /* ** the default initialization cleared the display. ** draw a 100x100 red rectangle in the upper left corner (0,0) ** of the display. */ sedrawrect(device, 0, 0, 100, 100, 1, true); /* ** pause here. */ getch(); /* ** clear the display. do this by writing 40960 bytes */ sewritedisplaybytes(device, 0, 0, forty_k); /* ** setup swivelview mode. */
epson research and development page 63 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 sesethwrotate(device, portrait); /* ** draw a solid blue 100x100 rectangle in center of the display. ** this starting co-ordinates, assuming a 320x240 display is ** (320-100)/2 , (240-100)/2 = 110,70. */ sedrawrect(device, 110, 70, 210, 170, 2, true); /* ** done! */ exit(0); }
page 64 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 10.1.2 sample code without using the sed1374 hal api this second sample demonstrates exactly the same sequence as the first howerver the hal is not used, all manipulation is done by manually adjusting the registers. /* **=========================================================================== ** sample2.c - sample code demonstating a direct access of the sed1374. **------------------------------------------------------------------------- ** created 1998, vancouver design centre ** copyright (c) 1998 epson research and development, inc. ** all rights reserved. **------------------------------------------------------------------------- ** ** the sample code using direct sed1374 access ** will configure for the following: ** ** 320x240 single color 8-bit stn (format 2) ** 4 bpp - 70 hz frame rate (25 mhz clki) ** high performance enabled ** ** notes: ** 1) this code is pseudo-c code intended to show technique. ** it is assumed that pointers can access the relevant memory addresses. ** 2) register setup is done with discreet writes rather than being table ** driven. this allows for clearer commenting. it is more efficient to ** loop through the array writing each element to a control register. ** 3) the array of register values as produced by 1374cfg.exe is included ** here. i used the values directly rather than refer to the register ** array in the sample code. ** **=========================================================================== */ #include /* ** look-up table for 4 bpp color. */ unsigned char color_4bpp[16*3] = { 0x00, 0x00, 0x00,/* black */ 0x00, 0x00, 0x0a,/* blue */ 0x00, 0x0a, 0x00,/* green */ 0x00, 0x0a, 0x0a,/* cyan */ 0x0a, 0x00, 0x00,/* red */ 0x0a, 0x00, 0x0a,/* purple */ 0x0a, 0x0a, 0x00,/* yellow */ 0x0a, 0x0a, 0x0a,/* white */ 0x00, 0x00, 0x00,/* black */
epson research and development page 65 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 0x00, 0x00, 0x0f,/* lt blue */ 0x00, 0x0f, 0x00,/* lt green */ 0x00, 0x0f, 0x0f,/* lt cyan */ 0x0f, 0x00, 0x00,/* lt red */ 0x0f, 0x00, 0x0f,/* lt purple */ 0x0f, 0x0f, 0x00,/* lt yellow */ 0x0f, 0x0f, 0x0f/* lt white */ }; /* ** register data for the configuratin described above. ** these values were generated using 1374cfg.exe. ** the sample code uses these values but does not refer to this array. */ unsigned char reg[0x20] = { 0x00, 0x23, 0xb0, 0x03, 0x27, 0xef, 0x00, 0x00, 0x1e, 0x00, 0x3b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; /* ** useful definitions, constants and macros to make the sample code ** easier to follow. */ #define mem_offset 0x01374b0b /* location is platform dependent */ #define reg_offset mem_offset + 0xffe0/* memory offset + 64k - 0x20 */ #define mem_size 0xa000 /* 40 kb display buffer. */ typedef unsigned char byte; /* some usefule typedefs */ typedef byte far * lpbyte; typedef unsigned short word; #define lobyte(w) ((byte)(w)) #define hibyte(w) ((byte)(((word)(w) >> 8) & 0xff)) #define set_reg(idx, val) (*(lpbyte)(reg_offset + idx)) = (val) /*-----------------------------------------------------------------------*/ void main(void) { lpbyte pregs = (lpbyte)reg_offset; lpbyte pmem = (lpbyte)mem_offset; lpbyte plut; int lutcount, rgbcount; int x, y, tmp; int bitsperpixel = 4; int width = 320; int height = 240; int offsetbytes;
page 66 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 /* ** check the revision code. exit if we don't find an sed1374. */ if (0x18 != *pregs) return; /* ** initialize the chip. ** each register is individually programmed to make comments clearer. */ /* ** register 01h: mode register 0 - color, 8-bit format 2 */ set_reg(0x01, 0x23); /* ** register 02h: mode register 1 - 4bpp, high performance, clki/2 */ set_reg(0x02, 0xb0); /* ** register 03h: mode register 2 - normal power mode */ set_reg(0x03, 0x03); /* ** register 04h: horizontal panel size - 320 pixels - (320/8)-1 = 39 = 27h */ set_reg(0x04, 0x27); /* ** register 05h: vertical panel size lsb - 240 pixels ** register 06h: vertical panel size msb - (240 - 1) = 239 = efh */ set_reg(0x05, 0xef); set_reg(0x06, 0x00); /* ** register 07h - fpline start position - not used by stn */ set_reg(0x07, 0x00); /* ** register 08h - horizontal non-display period ** - hndp and vndp are calculated to achieve the ** desired frame rate according to: ** ** pclk
epson research and development page 67 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 ** frame rate = --------------------------- ** (hdp + hndp) * (vdp + vndp) */ set_reg(0x08, 0x1e); /* ** register 09h - fpframe start position - not used by stn */ set_reg(0x09, 0x00); /* ** register 0ah - vertical non-display register ** - calculated in conjunction with register 08h (hndp) to ** achieve the desired frame rate. */ set_reg(0x0a, 0x3b); /* ** register 0bh - mod rate - not used by this panel */ set_reg(0x0b, 0x00); /* ** register 0ch - screen 1 start word address lsb ** register 0dh - screen 1 start word address msb ** - start address should be set to 0 */ set_reg(0x0c, 0x00); set_reg(0x0d, 0x00); /* ** register 0fh - screen 2 start word address lsb ** register 10h - screen 2 start word address msb ** - set this start address to 0 too */ set_reg(0x0f, 0x00); set_reg(0x10, 0x00); /* ** register 12h - memory address offset ** - used for setting memory to a width greater than the ** display size. usually set to 0 during initialization ** and programmed to desired value later. */ set_reg(0x12, 0x00); /* ** register 13h - screen 1 vertical size lsb ** register 14h - screen 1 vertical size msb
page 68 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 ** - set to maximum (i.e. 0x3ff). this register is used ** for split screen operation and should be set to 0 ** during initialization. */ set_reg(0x13, 0xff); set_reg(0x14, 0x03); /* ** look-up table ** in this example the lut will be programmed in the register sequence. ** in practice the lut would probably be done after the other registers. */ /* ** register 15h - look-up table address ** - set to 0 to start rgb sequencing at the first lut entry. */ set_reg(0x15, 0x00); /* ** register 16h - look-up table bank select ** - set all the banks to 0. ** - at 4bpp this makes no difference however it will affect ** appearance at other color depths. */ set_reg(0x16, 0x00); /* ** register 17h - look-up table data ** - write 16 rgb triplets to setup the lut for 4bpp operation. ** - the lut is 16 elements deep, 4bpp uses all the idices. */ plut = color_4bpp; for (lutcount = 0; lutcount < 16; lutcount++) { for (rgbcount = 0; rgbcount < 3; rgbcount++) { set_reg(0x17, *plut); plut++; } } /* ** register 18h - gpio configuration - set to 0 ** - '0' configures the gpio pins for input (power on default) */ set_reg(0x18, 0x00); /* ** register 19h - gpio status - set to 0 ** - this step has no reason other than it programs the gpio
epson research and development page 69 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 ** values low should the pins get configured as outputs. */ set_reg(0x19, 0x00); /* ** register 1ah - scratch pad - set to 0 */ set_reg(0x1a, 0x00); /* ** register 1bh - swivelview mode - set to 0 - disable swivelview mode */ set_reg(0x1b, 0x00); /* ** register 1ch - line byte count - set to 0 - not used by landscape mode */ set_reg(0x0c, 0x00); /* ** register 1fh - testmode - set to 0 */ set_reg(0x1f, 0x00); /* ** draw a 100x100 red rectangle in the upper left corner (0,0) ** of the display. */ for (y = 0; y < 100; y++) { /* ** set the memory pointer at the start of each line. ** pointer = mem_offset + (y * line_width * bpp / 8) + (x * bpp / 8) */ pmem = (lpbyte)mem_offset + (y * 320 * bitsperpixel / 8) + 0; for (x = 0; x < 100; x+=2) { *pmem = 0x44; /* draws 2 pixels with lut color 4 */ pmem++; } } /* ** pause here. */ getch(); /* ** clear the display, and all of video memory, by writing 40960 bytes of 0.
page 70 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 ** this is done because an image in display memory is not rotated with the ** switch to swivelview mode we are about to make. */ pmem = (lpbyte)mem_offset; do { *pmem = 0; pmem++; } while (pmem < (lpbyte)(mem_offset + mem_size)); /* ** swivelview mode. */ /* ** we will use the default swivelview mode scheme so we have to adjust ** the rotated width to be a power of 2. ** (note: current height will become the rotated width) */ tmp = 1; while (height > (1 << tmp)) tmp++; height = (1 << tmp); offsetbytes = height * bitsperpixel / 8; /* ** set: ** 1) line byte count to size of the rotated width (i.e. current height) ** 2) start address to the offset of the width of the rotated display. ** (in swivelview mode the start address registers point to bytes) */ set_reg(0x1c, (byte)offsetbytes); offsetbytes--; set_reg(0x0c, lobyte(offsetbytes)); set_reg(0x0d, hibyte(offsetbytes)); /* ** set swivelview mode. ** use the non-x2 (default) scheme so we don't have to re-calc the frame ** rate. mclk will be <= 25 mhz so we can leave auto-switch enabled. */ set_reg(0x1b, 0x80); /* ** draw a solid blue 100x100 rectangle centered on the display. ** starting co-ordinates, assuming a 320x240 display are: ** (320-100)/2 , (240-100)/2 = 110,70. */ for (y = 70; y < 180; y++) { /*
epson research and development page 71 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 ** set the memory pointer at the start of each line. ** pointer = mem_offset + (y * line_width * bpp / 8) + (x * bpp / 8) ** notice that in swivelview mode we will use a value of 256 ** for the line width value (not 240). */ x = 110; pmem = (lpbyte)mem_offset + (y * 256 * bitsperpixel / 8) + (x * bitsperpixel / 8); for (x = 110; x < 210; x+=2) { *pmem = 0x11; /* draws 2 pixels in lut color 1 */ pmem++; } } }
page 72 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 10.1.3 header files the header files included here are the required for the hal sample to compile correctly. /* **=========================================================================== ** hal.h - typical hal header file for use with programs written to ** use the sed1374 hal. **--------------------------------------------------------------------------- ** created 1998, vancouver design centre ** copyright (c) 1998 epson research and development, inc. ** all rights reserved. **=========================================================================== */ #ifndef _hal_h_ #define _hal_h_ #pragma warning(disable:4001) // disable the 'single line comment' warning. #include "hal_regs.h" /*-------------------------------------------------------------------------*/ typedef unsigned char byte; typedef unsigned short word; typedef unsigned long dword; typedef unsigned int uint; typedef int bool; #ifdef intel typedef byte far *lpbyte; typedef word far *lpword; typedef uint far *lpuint; typedef dword far *lpdword; #else typedef byte *lpbyte; typedef word *lpword; typedef uint *lpuint; typedef dword *lpdword; #endif #ifndef lobyte #define lobyte(w) ((byte)(w)) #endif #ifndef hibyte #define hibyte(w) ((byte)(((uint)(w) >> 8) & 0xff)) #endif #ifndef loword #define loword(l) ((word)(dword)(l)) #endif #ifndef hiword #define hiword(l) ((word)((((dword)(l)) >> 16) & 0xffff)) #endif
epson research and development page 73 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 #ifndef makeword #define makeword(lo, hi) ((word)(((word)(lo)) | (((word)(hi)) << 8)) ) #endif #ifndef makelong #define makelong(lo, hi) ((long)(((word)(lo)) | (((dword)((word)(hi))) << 16))) #endif #ifndef true #define true 1 #endif #ifndef false #define false 0 #endif #define off 0 #define on 1 #define screen1 1 #define screen22 /* ** constants for hw rotate support */ #define default0 #define landscape 1 #define portrait2 #ifndef null #ifdef __cplusplus #define null 0 #else #define null ((void *)0) #endif #endif /*-------------------------------------------------------------------------*/ /* ** size_version is the size of the version string (eg. "1.00") ** size_status is the size of the status string (eg. "b" for beta) ** size_revision is the size of the status revision string (eg. "00") */ #define size_version5 #define size_status 2 #define size_revision3 #ifdef enable_dpf /* debug_printf() */ #define dpf(exp) printf(#exp "\n") #define dpf1(exp) printf(#exp " = %d\n", exp) #define dpf2(exp1, exp2) printf(#exp1 "=%d " #exp2 "=%d\n", exp1, exp2) #define dpfl(exp) printf(#exp " = %x\n", exp) #else #define dpf(exp) ((void)0) #define dpf1(exp) ((void)0) #define dpfl(exp) ((void)0) #endif
page 74 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 /*-------------------------------------------------------------------------*/ enum { err_ok = 0, /* no error, call was successful. */ err_failed, /* general purpose failure. */ err_unknown_device, /* */ err_invalid_parameter, /* function was called with invalid parameter. */ err_hal_bad_arg, err_toomany_devs }; /******************************************* * definitions for segetid() *******************************************/ #define product_id 0x18 enum { id_unknown, id_sed1374, id_sed1374f0a }; #define max_mem_addr 40960 -1 #define forty_k 40960 #define max_device 10 #define se_rsvd 0 /* ** detectendian is used to determine whether the most significant ** and least significant bytes are reversed by the given compiler. */ #define endian 0x1234 #define rev_endian 0x3412 /******************************************* * definitions for internal calculations. *******************************************/ #define min_non_disp_x 32 #define max_non_disp_x 256 #define min_non_disp_y 2 #define max_non_disp_y 64 /******************************************* * definitions for sesetfont *******************************************/ enum { hal_stdout, hal_stdin, hal_device_err }; #define font_normal 0x00
epson research and development page 75 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 #define font_double_width 0x01 #define font_double_height 0x02 enum { red, green, blue }; /*************************************************************************/ typedef struct taghalstruct { char szidstring[16]; word wdetectendian; word wsize; byte reg[max_reg + 1]; dword dwclki; /* input clock frequency (in khz) */ dword dwdispmem; /* */ word wframerate; /* */ } hal_struct; typedef hal_struct * phal_struct; #ifdef intel typedef hal_struct far * lphal_struct; #else typedef hal_struct * lphal_struct; #endif /*=========================================================================*/ /* function proto-types */ /*=========================================================================*/ /*---------------------------- initialization -----------------------------*/ int seregisterdevice( const lphal_struct lphalinfo, int *device ); int sesetinit( int device ); int seinithal( void ); /*----------------------------- miscellaneous -----------------------------*/ int segetid( int ndevid, int *pid ); void segethalversion( const char **pversion, const char **pstatus, const char **psta- tusrevision ); int sesetbitsperpixel( int ndevid, int nbitsperpixel ); int segetbitsperpixel( int ndevid, int *pbitsperpixel ); int segetbytesperscanline( int ndevid, int *pbytes ); int segetscreensize( int ndevid, int *width, int *height ); void sedelay( int nmilliseconds ); int segetlastusablebyte( int ndevid, long *lastbyte ); int sesethighperformance( int ndevid, bool onoff ); /*------------------------------- advanced --------------------------------*/ int sesethwrotate( int ndevid, int nmode );
page 76 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 int sesplitinit( int ndevid, word scrn1addr, word scrn2addr ); int sesplitscreen( int ndevid, int whichscreen, int visiblescanlines ); int sevirtinit( int ndevid, int xvirt, long *yvirt ); int sevirtmove( int ndevid, int nwhichscreen, int x, int y ); /*------------------------ register/memory access -------------------------*/ int segetreg( int ndevid, int index, byte *pvalue ); int sesetreg( int ndevid, int index, byte value ); int sereaddisplaybyte( int ndevid, dword offset, byte *pbyte ); int sereaddisplayword( int ndevid, dword offset, word *pword ); int sereaddisplaydword( int ndevid, dword offset, dword *pdword ); int sewritedisplaybytes( int ndevid, dword addr, byte val, dword count ); int sewritedisplaywords( int ndevid, dword addr, word val, dword count ); int sewritedisplaydwords( int ndevid, dword addr, dword val, dword count ); /*---------------------------------- power save ---------------------------*/ int sehwsuspend( int ndevid, bool val ); int sesetpowersavemode( int ndevid, int powersavemode ); /*----------------------------------- drawing -----------------------------*/ // int sesetpixel( int ndevid, int x, int y, dword color ); // int segetpixel( int ndevid, int x, int y, dword *pval ); int sedrawline( int ndevid, int x1, int y1, int x2, int y2, dword color ); int sedrawrect( int ndevid, int x1, int y1, int x2, int y2, dword color, bool solid- fill ); // int sedrawcircle( int ndevid, int xcenter, int ycenter, int radius, dword color, byte solidfill ); /*------------------------------ text -------------------------------------*/ // int sedrawtext( int ndevid, char *fmt, ... ); // int sesetcursor( int row, int col); // int sesetcolor( dword foreground, dword background); // int sesetfont( byte fontsize, byte fontattr); /*------------------------------ color ------------------------------------*/ int sesetlut( int ndevid, byte *plut ); int segetlut( int ndevid, byte *plut ); int sesetlutentry( int ndevid, int index, byte *pentry ); int segetlutentry( int ndevid, int index, byte *pentry ); #endif /* _hal_h_ */ /*--------------------------------------------------------------------------*/ /* **=========================================================================== ** appcfg.h - application configuration information. **--------------------------------------------------------------------------- ** created 1998, vancouver design centre
epson research and development page 77 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 ** copyright (c) 1998 epson research and development, inc. ** all rights reserved. **--------------------------------------------------------------------------- ** ** the data in this file was generated using 1374cfg.exe. ** ** the configureation parameters chosen were: ** 320x240 single color 8-bit stn (format 2) ** 4 bpp - 70 hz frame rate (25 mhz clki) ** high performance enabled ** **=========================================================================== */ /**************************************************************/ /* 1374 hal hdr (do not remove) */ /* hal_struct information generated by 1374cfg.exe */ /* copyright (c) 1998 seiko epson corp. all rights reserved. */ /* */ /* include this file once in your primary source file */ /**************************************************************/ hal_struct halinfo = { "1374 hal exe", /* id string */ 0x1234, /* detect endian */ sizeof(hal_struct), /* size */ 0x00, 0x23, 0xb0, 0x03, 0x27, 0xef, 0x00, 0x00, 0x1e, 0x00, 0x3b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 25000, /* clki (khz) */ 0xd0000, /* display address */ 70, ** panel frame rate (hz) */ }; /*--------------------------------------------------------------------------*/ /* **=========================================================================== ** hal_regs.h **--------------------------------------------------------------------------- ** created 1998, epson research & development ** vancouver design center. ** copyright(c) seiko epson corp. 1998. all rights reserved. **=========================================================================== */ #ifndef __hal_regs_h__ #define __hal_regs_h__ /*
page 78 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 ** 1374 register names */ #define reg_revision_code 0x00 #define reg_mode_register_0 0x01 #define reg_mode_register_1 0x02 #define reg_mode_register_2 0x03 #define reg_horz_panel_size 0x04 #define reg_vert_panel_size_lsb 0x05 #define reg_vert_panel_size_msb 0x06 #define reg_fpline_start_pos 0x07 #define reg_horz_nondisp_period 0x08 #define reg_fpframe_start_pos 0x09 #define reg_vert_nondisp_period 0x0a #define reg_mod_rate 0x0b #define reg_scrn1_start_addr_lsb 0x0c #define reg_scrn1_start_addr_msb 0x0d #define reg_reserved_1 0x0e #define reg_scrn2_start_addr_lsb 0x0f #define reg_scrn2_start_addr_msb 0x10 #define reg_reserved_2 0x11 #define reg_pitch_adjust 0x12 #define reg_scrn1_vert_size_lsb 0x13 #define reg_scrn1_vert_size_msb 0x14 #define reg_lut_addr 0x15 #define reg_lut_bank_select 0x16 #define reg_lut_data 0x17 #define reg_gpio_config 0x18 #define reg_gpio_status 0x19 #define reg_scratchpad 0x1a #define reg_portrait_mode 0x1b #define reg_line_byte_count 0x1c #define reg_not_present_1 0x1d #define reg_framing 0x1e #define reg_test_mode 0x1f /* ** warning!!! max_reg must be the last available register!!! */ #define max_reg 0x1f #endif /* __hal_regs_h__ */
epson research and development page 79 vancouver design center programming notes and examples sed1374 issue date: 99/04/27 x26a-g-002-02 appendix a supported panel values a.1 introduction future versions of this document will supply example tables for programming the sed1374 for different panels.
page 80 epson research and development vancouver design center sed1374 programming notes and examples x26a-g-002-02 issue date: 99/04/27 this page left blank
sed1374 register summary x26a-r-001-02 page 1 99/04/23 notes 1 these bits are used to identify the sed1373 at power on / reset. 2 io addresses are relative to the beginning of display memory. 3 gray shade/color mode selection 4 panel data format 5 high performance selection 6 power save mode selection 7 look-up table access reg[00h] r evision c ode r egister 1 io address = ffe0h 2 , ro product code = 000110 revision code = 00 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 bit 1 bit 0 reg[01h] m ode r egister 0 io address = ffe1h, rw tft/stn dual/single color/mono 3 fpline polarity fpframe polarity mask fpshift data width 4 bit 1 bit 0 reg[02h] m ode r egister 1 io address = ffe2h, rw bit-per-pixel 3 high 5 performance input clock div (clki/2) display blank frame repeat hw video invert enable software video invert bit 1 bit 0 reg[03h] m ode r egister 2 io address = ffe3h, rw look-up table bypass n/a n/a n/a lcdpwr override hardware ps enable sw power save 6 bit 1 bit 0 reg[04h] h orizontal p anel s ize r egister io address = ffe4h, rw n/a horizontal panel size = 8(reg + 1) bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[05h] v ertical p anel s ize r egister (lsb) io address = ffe5h, rw vertical panel size = (reg[05h], reg[06h]) + 1 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[06h] v ertical p anel s ize r egister (msb) io address = ffe6h, rw n/an/an/an/an/an/a vertical panel size bit 9 bit 8 reg[07h] fpl ine s tart p osition io address = ffe7h, rw n/a n/a n/a fpline start position = 8(reg[07h] + 2) bit 4 bit 3 bit 2 bit 1 bit 0 reg[08h] h orizontal n on -d isplay p eriod io address = ffe8h, rw n/a n/a n/a horizontal non-display period = 8(reg + 4) bit 4 bit 3 bit 2 bit 1 bit 0 reg[09h] fpf rame s tart p osition io address = ffe9h, rw n/a n/a fpframe start position bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[0ah] v ertical n on -d isplay p eriod r egister io address = ffeah, rw vert non- disp status n/a vertical non-display period bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[0bh] mod r ate r egister io address = ffebh, rw n/a n/a mod rate bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[0ch] s creen 1 s tart w ord a ddress r egister (lsb) io address = ffech, rw screen 1 start word address = (reg[0ch], reg[0dh]) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[0dh] s creen 1 s tart w ord a ddress r egister (msb) io address = ffedh, rw reserved screen 1 start word address bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 reg[0fh] s creen 2 s tart w ord a ddress r egister (lsb) io address = ffefh, rw screen 2 start word address = (reg[0f], reg[10h]) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[10h] s creen 2 s tart w ord a ddress r egister (msb) io address = fff0h, rw screen 2 start word address bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 reg[12h] m emory a ddress o ffset r egister io address = fff2h, rw memory address offset bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[13h] s creen 1 v ertical s ize r egister (lsb) io address = fff3h, rw screen 1 vertical size = (reg[13h], reg[14h]) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[14h] s creen 1 v ertical s ize r egister (msb) io address = fff4h, rw n/a n/a n/a n/a n/a n/a screen 1 vertical size bit 9 bit 8 reg[15h] l ook -u p t able a ddress r egister 7 io address = fff5h, rw n/a n/a rgb index look-up table address bit 1 bit 0 bit 3 bit 2 bit 1 bit 0 reg[16h] l ook -u p t able b ank s elect r egister io address = fff6h, rw n/a n/a red bank select green bank select blue bank select bit 1 bit 0 bit 1 bit 0 bit 1 bit 0 reg[17h] l ook -u p t able d ata r egister io address = fff7h, rw n/a n/a n/a n/a look-up table data bit 3 bit 2 bit 1 bit 0 reg[18h] gpio c onfiguration c ontrol r egister io address = fff8h, rw n/a n/a n/a gpio4 pin io config gpio3 pin io config gpio2 pin io config gpio1 pin io config gpio0 pin io config reg[19h] gpio s tatus / c ontrol r egister io address = fff9h, rw n/a n/a n/a gpio4 pin io status gpio3 pin io status gpio2 pin io status gpio1 pin io status gpio0 pin io status reg[1ah] s cratch p ad r egister io address = fffah, rw scratch pad register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg[1bh] s wivel v iew m ode r egister io address = fffbh, rw swivelview mode en. swivelview mode sel. n/a n/a n/a reserved swivelview mode pclk select bit 1 bit 0 reg[1ch] l ine b yte c ount r egister io address = fffch, rw line byte count bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 color/mono reg[01] bit 5 bit-per-pixel bit 1 reg[02] bit 7 bit-per-pixel bit 0 reg[02] bit 6 display mode 1 0 0 2 colors 1 bit-per-pixel 1 4 colors 2 bit-per-pixel 1 0 16 colors 4 bit-per-pixel 1 256 colors 8 bit-per-pixel 0 0 0 2 gray shade 1 bit-per-pixel 1 4 gray shade 2 bit-per-pixel 1 0 16 gray shade 4 bit-per-pixel 1 reserved tft/stn reg[01] bit 7 color/ mono reg[01] bit 5 dual/ single reg[01] bit 6 data width bit 1 reg[01] bit 1 data width bit 0 reg[01] bit 0 function 0 0 0 0 0 mono single 4-bit lcd 1 mono single 8-bit lcd 1 0 reserved 1 reserved 1 0 0 reserved 1 mono dual 8-bit lcd 1 0 reserved 1 reserved 1 0 0 0 color single 4-bit lcd 1 color single 8-bit lcd format 1 1 0 reserved 1 color single 8-bit lcd format 2 1 0 0 reserved 1 color dual 8-bit lcd 1 0 reserved 1 reserved 1 dont care 0 9 bit tft panel 1 12 bit tft panel high performance bit-per-pixel bit 1 reg[02] bit 7 bit-per-pixel bit 0 reg[02] bit 6 display modes 0 0 0 mclk = pclk/8 1 bit-per-pixel 1 mclk = pclk/4 2 bit-per-pixel 1 0 mclk = pclk/2 4 bit-per-pixel 1 mclk = pclk 8 bit-per-pixel 1xx mclk = pclk power save bit 1 power save bit 0 mode 0 0 software power save mode 0 1 reserved 1 0 reserved 1 1 normal operation color/mono reg[01h] bit 5 reg[15h] look-up table selected pointer sequence bit 5 bit 4 0 x x green/gray look-up table g[n], g[n+1], g[n+2]... 1 0 0 auto-increment r[n], g[n], b[n] r[n+1], g[n+1],... 1 0 1 red look-up table r[n], r[n+1], r[n+2]... 1 1 0 green/gray look-up table g[n], g[n+1], g[n+2]... 1 1 1 blue look-up table b[n], b[n+1], b[n+2]... sed1374 register summary x26a-r-001-02
sed1374 register summary x26a-r-001-02 page 2 99/04/23
sed1374 embedded memory color lcd controller 1374cfg.exe configuration program document no. x26a-b-001-01 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center sed1374 1374cfg.exe configuration program x26a-b-001-01 issue date: 98/10/27 this page left blank
epson research and development page 3 vancouver design center 1374cfg.exe configuration program sed1374 issue date: 98/10/27 x26a-b-001-01 table of contents introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 program requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1374cfg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 panel information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 miscellaneous options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 lut control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 open . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 save . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 exit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 list of figures figure 1: 1374cfg window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 figure 2: panel information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 figure 3: miscellaneous options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 figure 4: system options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 5: error: frame rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 6: error: zero frame rate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 7: lut control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 8: 1374cfg file open dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 9: error: unable to read hal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 figure 10: 1374cfg save as dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 11: error: unable to read hal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
page 4 epson research and development vancouver design center sed1374 1374cfg.exe configuration program x26a-b-001-01 issue date: 98/10/27 this page left blank
epson research and development page 5 vancouver design center 1374cfg.exe configuration program sed1374 issue date: 98/10/27 x26a-b-001-01 introduction 1374cfg is a win 32 program which gives developers an easy means to modify panel types, clock rates, color depths, etc. for sed1374 demonstration programs. 1374cfg can: ? read programs, based on the 1374 hardware abstraction layer (hal), modify the settings and write the changes back to the file. the ability to read, modify and write bypasses having to recompile after every change. ? write c header files containing register settings which can be used to initialize the 1374 registers in programs which do not use the hal.
page 6 epson research and development vancouver design center sed1374 1374cfg.exe configuration program x26a-b-001-01 issue date: 98/10/27 program requirements this program is designed to run under windows 95/98 or windows nt 4.0 installation there is no installation program for 1374cfg. installation to a local drive is done by copying 1374cfg.exe and 1374cfg.hlp to your hard drive and optionally creating a link on the windows desktop for easy access to the program. usage open the drive and folder where you copied 1374cfg.exe and double click the icon to start the program. optionally, if you created a link to the program on your desktop, double click the link icon.
epson research and development page 7 vancouver design center 1374cfg.exe configuration program sed1374 issue date: 98/10/27 x26a-b-001-01 1374cfg the 1374cfg window has four main sections: panel information (includes dimensions), lookup table, miscellaneous options, and system settings. figure 1: 1374cfg window the following sections describe each of the main sections of the configuration dialog box.
page 8 epson research and development vancouver design center sed1374 1374cfg.exe configuration program x26a-b-001-01 issue date: 98/10/27 panel information figure 2: panel information this section of the 1374cfg dialog describes the panel connected to the sed1374. each of the settings are described briefly below. ? mono / color C select mono for monochrome panels or color for color panels. this option is stn specific and is disabled if tft is selected. ? single / dual C select single when connected to a single panel or dual for connection to a dual panel. this option is stn specific and is disabled if tft is selected. ? stn / tft C select stn for passive panels or tft for active panels. switching between these two panel types causes visible changes to take place to the configuration dialog box. ? 4 bit / 8 bit C here the panel data width is selected. when stn panel types are selected the options are 4-bit and 8-bit. when tft panels are selected the options will be 9-bit and 12-bit. ? dimensions C in the left selection box horizontal pixels can be chosen from the list or typed in; in the right selection box, vertical lines, in pixels, can be selected from the list or typed in. ? mask fpshift C when selected the panel clocking signal fpshift is masked off. this option is required for most newer monochrome panels. when color panel type is selected this option is disabled. this option is stn specific and is disabled if tft is selected.
epson research and development page 9 vancouver design center 1374cfg.exe configuration program sed1374 issue date: 98/10/27 x26a-b-001-01 ? format 2 C there are two data clocking formats in use by 8-bit color panels. the orig- inal clocking scheme was designated to be format 1 and the newer scheme was desig- nated format 2. select this option for most 8 bit color panels. to date all color panels smaller than 640x480 have been found to be format 2. setting this attribute incorrectly will result in a garbled display but will not damage the panel. the display may appear cut in half or possibly horizontally skewed. this option is stn specific and is disabled if tft is selected. it is also disabled if the panel type is selected to be 4-bit or monochrome. ? frame repeat C is a feature for el panel support. el panels use a frame of repeated data as the cue to change their polarization. without this change in polarization panel quality deteriorates. when frame repeat is selected an internal counter causes the periodic repeat of one frame of modulated panel. at a frame rate of 72 hz the repeat period is roughly one hour. when not selected the modulated image is never consecutively repeated. this option is stn specific and is disabled if tft is selected. ? mod count C the mod count value specifies the number of fplines between toggles of the mod output signal. when set to 0 (default) the mod output signal toggles every fpframe. this field is for passive panels only and is generally only required for older mono- chrome panels. ? fpline start C this field specifies the delay, in an 8 pixel resolution, from the end of a line of display data (fpdat) to the leading edge of fpline. this field is a tft specific setting and is disabled if an stn panel is chosen. ? fpframe start - this field specifies the number of lines between the last line of display data (fpdat) and the leading edge of fpframe. this field is a tft specific setting and is disabled if an stn panel is chosen. ? fpline / fpframe polarity - these settings control the sync pulse direction of the fpline and fpframe pulses in tft modes. select the appropriate pulse direction for the panel being connected. selecting 'lo' results in an active low sync pulse while 'hi' results in an active high pulse. these settings are tft specific and are disabled when stn panel is selected. when stn panel type is selected the pulse directions are preset to +ve, +ve.
page 10 epson research and development vancouver design center sed1374 1374cfg.exe configuration program x26a-b-001-01 issue date: 98/10/27 miscellaneous options figure 3: miscellaneous options miscellaneous options are several items which do not fit into any other category. ? hw video invert enable - the sed1374 supports inverted color output. the color inversion can be toggled by software or in response to a signal applied to pin fpdat11. in order for the hardware color inversion to succeed this option must be selected. - the color inversion is performed on the output from the lut. - hw video invert is not availlable for tft operation. ? hw power save enable - the sed1374 supports two power save modes. one is initi- ated by software, the second in response to input on the gpio0 pin. in order for the hardware power save mode to function this option must be selected. ? high performance - improves chip throughput at the expense of power consumption. when not selected the internal mclk signal is divided down version of the internal pclk signal. table 1 depicts the ratios when high performance is not selected. the slower mclks result in lower power use. when this option is selected mclk == pclck at all pixel depths. running mclk at higher frequencies results in greater power use. table 1: mclk to pclk ratios color depth (bpp) ratio 1 mclk = pclk / 8 2 mclk = pclk / 4 4 mclk = pclk / 2 8mclk = pclk
epson research and development page 11 vancouver design center 1374cfg.exe configuration program sed1374 issue date: 98/10/27 x26a-b-001-01 ? portrait mode - selecting portrait mode causes register settings and timings to be saved for portrait mode operation. the hal is capable of performing rotations on the fly. most programs written for the hal will ignore this setting and set portrait or landscape display modes as desired. this setting is useful when the configuration is saved into a c header file to be used by non-hal programs. system the options in the system section describe the items which are required for frame rate calculations and where in cpu address space the sed1374 will be located. figure 4: system options ? memory location - this describes where in cpu address space the sed1374 will be located. this setting is required by the hal to locate the sed1374. if the settings from 1374cfg will be saved to a c header file for use in a non-hal program this value does not have to be filled in. ? frame rate - indicate the desired frame rate here. 1374cfg will attempt to write register settings which result in the requested frame rate. if the frame rate cannot be reached then the following dialog inform the user of the problem figure 5: error: frame rate
page 12 epson research and development vancouver design center sed1374 1374cfg.exe configuration program x26a-b-001-01 issue date: 98/10/27 a frame rate must be entered in order for 1374cfg to complete the frame rate calcula- tions. if no frame rate is entered or the frame rate is set to 0 then the following dialog box will inform the user when they try to save the configuration. figure 6: error: zero frame rate ? input clock - this field specifies the clock rate being applied to the sed1374 in khz. lut control the items in this section control the color depth for the sed1374 after initialization. figure 7: lut control the color depth selections in this section will become enabled or disabled in response to the panel dimensions entered. (i.e. there is only enough memory to operate a 640x480 panel at 1 bit per pixel so the selections for 2 bpp, 4 bpp and 8 bpp would be disabled if this size pane was selected) ? 1 bpp C sets the color depth to 1 bit per pixel. ? 2 bpp C sets the color depth to 2 bit per pixel. ? 4 bpp C sets the color depth to 4 bit per pixel. ? 8 bpp C sets the color depth to 8 bit per pixel.
epson research and development page 13 vancouver design center 1374cfg.exe configuration program sed1374 issue date: 98/10/27 x26a-b-001-01 ? bypass lut C when selected this option causes the lookup table to be bypassed. selecting to bypass the lookup table results in a power saving as the lookup table section of the sed1374 is powered down when this option is selected. this option is only applicable for monochrome displays. if a color panel is selected this option is disabled. when the lookup table is not enabled then display intensities are dependent on the values in the lookup table. a smaller numerical value in display memory may be displayed with a greater intensity than a larger value. when the lookup table is bypassed the colors displayed on the panel are directly propor- tional to their memory value. (i.e. at 4 bit per pixel; 00h will display as black and 0fh will display as full intensity) open click on the open button to read the settings saved in an executable program based on the sed1374 hardware abstraction layer. clicking the open button brings up the standard windows file open dialog. figure 8: 1374cfg file open dialog from here the user selects the file to be opened. 1374cfg is capable of opening executable files based on the sed1374 hal. typically the file extension for these file are .exe for intel platform executables and .s9 for 68k and sh3 platform executables.
page 14 epson research and development vancouver design center sed1374 1374cfg.exe configuration program x26a-b-001-01 issue date: 98/10/27 opening a file reads that files hal configuration information. use the data read as a starting point in configuring this or other files or to check on the current configuration. if 1374cfg is unable locate the hal information in the selected file the following dialog box is displayed. figure 9: error: unable to read hal save click on the close button to save the current configuration settings. when clicked the standard windows file save as dialog box is displayed. figure 10: 1374cfg save as dialog from the save as dialog box first select the type of file to save to in the save as type: edit field. 1374cfg currently saves in three file formats. ? .exe files - are binary images containing a hal structure for execution on intel plat- forms ? .s9 files - are ascii binary format files used by several embedded systems. the .s9 file is a variation of .s19 files. ? .h files - are ascii c header files which can be included in other programs.
epson research and development page 15 vancouver design center 1374cfg.exe configuration program sed1374 issue date: 98/10/27 x26a-b-001-01 if an executable file (.exe or .s9) is selected as the type of file to save to the file being saved to must already exist and be an sed1374 hal based program. 1374cfg is cannot save to a non-existent program. if 1374cfg is unable to locate the hal information in the file being saved to the following dialog box is displayed. figure 11: error: unable to read hal help clicking on the help button will start the help file for sed1374cfg. exit clicking on the exit button exits 1374cfg immediately. the user is not prompted to save any changes they may have made.
page 16 epson research and development vancouver design center sed1374 1374cfg.exe configuration program x26a-b-001-01 issue date: 98/10/27 comments it is assumed that the 1374cfg user is familiar with sed1374 hardware and software. refer to the sed1374 functional hardware specification, drawing office number x22a-a-001-xx, and the sed1374 programming notes and examples manual, drawing office number x22a-g-002-xx for information.
sed1374 embedded memory color lcd controller 1374show demonstration program document no. x26a-b-002-01 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center sed1374 1374show demonstration program x26a-b-002-01 issue date: 98/10/20 this page left blank
epson research and development page 3 vancouver design center 1374show demonstration program sed1374 issue date: 98/10/20 x26a-b-002-01 1374show 1374show demonstrates sed1374 display capabilities by drawing a pattern image at different pixel depths (1, 2, 4, and 8 bits-per-pixel) on the display. 1374show must be configured to work with each different hardware platform. consult documentation for the program 1374cfg.exe which can be used to configure 1374show. this software is designed to work in a variety of embedded and personal computer (pc) environments. for embedded environments the model employed is that of host-target. it is assumed that the system has a means of downloading software from the host to the target platform. typically this is done by a serial communication link. alternative methods include eprom, parallel port connection or network connection. it is beyond the scope of this document to provide support for target/host configurations. sed1374 supported evaluation platforms 1374show has been tested with the following sed1374 supported evaluation platforms: ? pc system with an intel 80x86 processor. ? m68332bcc (business card computer) board, revision b, with a motorola mc68332 processor. ? m68ec000idp (integrated development platform) board, revision 3.0, with a motorola m68ec000 processor. ? sh3-lcevb board, revision b, with an hitachi sh-3 hd6417780 processor. if the platform you are using is different from the above, please see the sed1374 programming notes and examples manual, document number x26a-g-002-xx. installation pc platform : copy the file 1374show.exe to a directory that is in the dos path on your hard drive. embedded platform : download the program 1374show to the system.
page 4 epson research and development vancouver design center sed1374 1374show demonstration program x26a-b-002-01 issue date: 98/10/20 usage pc platform : at the prompt, type: 1374show [/a][b=n][/l][/p][/vertical][/noinit][/?] embedded platform : execute 1374show and at the prompt, type the command line argument(s). where: /a automatically cycle through all video modes. b=? starts 1374show at a user specified bit-per-pixel (bpp) level, where ? can be: 1, 2, 4, 8. /l set landscape mode. /p set portrait mode. /vertical displays vertical line pattern. /noinit bypass register initialization and use values which are currently in the registers. /? displays the help screen. program messages error: too many devices registered. there are too many display devices attached to the hal. the hal currently can manage only one device. error: could not register 1374 device. a 1374 device was not found at the configured addresses. check the configuration address using the 1374cfg configuration program. error: did not find a 1374 device. the hal was unable to read the revision code register on the sed1374. ensure that the sed1374 hardware is installed and that the hardware platform has been set up correctly. error: could not initialize device. the hal failed to initialize the registers.
sed1374 embedded memory color lcd controller 1374splt display utility document no. x26a-b-003-01 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center sed1374 1374splt display utility x26a-b-003-01 issue date: 98/10/20 this page left blank
epson research and development page 3 vancouver design center 1374splt display utility sed1374 issue date: 98/10/20 x26a-b-003-01 1374splt 1374splt demonstrates sed1374 split screen capability by showing two different areas of display memory on the screen simultaneously. screen 1 memory is located at the start of the display buffer and is filled with horizontal bars. screen 2 memory is located immediately after screen 1 in the display buffer and is filled with vertical bars. on either user input or elapsed time, the line compare register value is changed to adjust the amount of display area taken up by each screen. 1374splt must be configured to work with each different hardware platform. consult documentation for the program 1374cfg.exe which can be used to configure 1374splt. this software is designed to work with a variety of embedded and personal computer (pc) environments. for embedded environments the model employed is that of host-target. it is assumed that the system has a means of downloading software from the host to the target platform. typically this is done by a serial communication link. alternative methods include eprom, parallel port connection or network connection. it is beyond the scope of this document to provide support for target/host configurations. sed1374 supported evaluation platforms 1374splt has been tested with the following sed1374 supported evaluation platforms: ? pc system with an intel 80x86 processor. ? m68332bcc (business card computer) board, revision b, with a motorola mc68332 processor. ? m68ec000idp (integrated development platform) board, revision 3.0, with a motorola m68ec000 processor. ? sh3-lcevb board, revision b, with an hitachi sh-3 hd6417780 processor. if the platform you are using is different from the above, please see the sed1374 programming notes and examples manual, document number x26a-g-002-xx. installation pc platform : copy the file 1374splt.exe to a directory that is in the dos path on your hard drive. embedded platform : download the program 1374splt to the system.
page 4 epson research and development vancouver design center sed1374 1374splt display utility x26a-b-003-01 issue date: 98/10/20 usage pc platform : at the prompt, type 1374splt [/a] [/l] [/p] [/?] embedded platform : execute 1374splt and at the prompt, type the command line argument. where: no argument enables manual split screen operation /a enables automatic split screen operation (a timer is used to move screen 2) /? display the help screen after starting 1374splt the following keyboard commands are available. manual mode: - , u move screen 2 up , d move screen 2 down home covers screen 1 with screen 2 end displays only screen 1 automatic mode: any key change the direction of split screen movement (for pc only) both modes: b changes the color depth (bits-per-pixel) esc exits 1374splt 1374splt example 1. type 1374splt /a to automatically move the split screen. 2. press b to change the color depth from 1 bit-per-pixel to 2 bit-per-pixel. 3. repeat step 2 for the remaining color depths (4 and 8 bit-per-pixel). 4. press to exit the program.
epson research and development page 5 vancouver design center 1374splt display utility sed1374 issue date: 98/10/20 x26a-b-003-01 program messages error: too many devices registered. there are too many display devices attached to the hal. the hal currently can manage only one device. error: could not register 1374 device. a 1374 device was not found at the configured addresses. check the configuration address using the 1374cfg configuration program. error: did not detect 1374. the hal was unable to read the revision code register on the sed1374. ensure that the sed1374 hardware is installed and that the hardware platform has been set up correctly.
page 6 epson research and development vancouver design center sed1374 1374splt display utility x26a-b-003-01 issue date: 98/10/20 this page left blank
sed1374 embedded memory color lcd controller 1374virt display utility document no. x26a-b-004-01 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center sed1374 1374virt display utility x26a-b-004-01 issue date: 98/10/20 this page left blank
epson research and development page 3 vancouver design center 1374virt display utility sed1374 issue date: 98/10/20 x26a-b-004-01 1374virt 1374virt demonstrates the virtual display capability of the sed1374. a virtual display is where the image to be displayed is larger than the physical display device. the display surface is used a viewing window. the entire image can be seen only by panning and scrolling. 1374virt must be configured to work with each different hardware platform. consult documentation for the program 1374cfg.exe which can be used to configure 1374virt. this software is designed to work with a variety of embedded and personal computer (pc) environments. for embedded environments the model employed is that of host/target. it is assumed that the system has a means of downloading software from the host to the target platform. typically this is done by a serial communication link. alternative methods include eprom, parallel port connection or network connection. it is beyond the scope of this document to provide support for target/host configurations. sed1374 supported evaluation platforms 1374virt has been tested with the following sed1374 supported evaluation platforms: ? pc system with an intel 80x86 processor. ? m68332bcc (business card computer) board, revision b, with a motorola mc68332 processor. ? m68ec000idp (integrated development platform) board, revision 3.0, with a motorola m68ec000 processor. ? sh3-lcevb board, revision b, with an hitachi sh-3 hd6417780 processor. if the platform you are using is different from the above, please see the sed1374 programming notes and examples manual, document number x26a-g-002-xx. installation pc platform : copy the file 1374virt.exe to a directory that is in the dos path on your hard drive. embedded platform : download the program 1374virt to the system.
page 4 epson research and development vancouver design center sed1374 1374virt display utility x26a-b-004-01 issue date: 98/10/20 usage pc platform : at the prompt, type 1374virt [/a] [/w=???] . embedded platform : execute 1374virt and at the prompt, type the command line argument. where: no argument panning and scrolling is performed manually (defaults to virtual width = = physical width x 2 and maximum virtual height) /a panning and scrolling is performed automatically /w=??? specifies the virtual display width which includes both on-screen and off-screen size the maximum virtual display width for each display mode is: 1 bpp C 4096 pixels 2 bpp C 2048 pixels 4 bpp C 1024 pixels 8 bpp C 512 pixels the following keyboard commands are for navigation within the program. manual mode: - scrolls up scrolls down ? pans to the left ? pans to the right home moves the display screen so that the upper right of the virtual screen shows in the upper right of the display end moves the display screen so that the lower left of the virtual screen shows in the lower left of the display automatic mode: any key changes the direction of screen both modes: b changes the color depth (bits-per-pixel) esc exits 1374virt
epson research and development page 5 vancouver design center 1374virt display utility sed1374 issue date: 98/10/20 x26a-b-004-01 1374virt example 1. type 1374virt /a to automatically pan and scroll. 2. press "b" to change the bits-per-pixel from 1 bit-per-pixel to 2 bits-per-pixel. 3. repeat steps 1 and 2 for the remaining color depths (4 and 8 bit-per-pixel). 4. press to exit the program. program messages error: too many devices registered. there are too many display devices attached to the hal. the hal currently can manage only one device. error: could not register 1374 device. a 1374 device was not found at the configured addresses. check the configuration address using the 1374cfg configuration program. error: did not detect 1374. the hal was unable to read the revision code register on the sed1374. ensure that the sed1374 hardware is installed and that the hardware platform has been set up correctly.
page 6 epson research and development vancouver design center sed1374 1374virt display utility x26a-b-004-01 issue date: 98/10/20 this page left blank
sed1374 embedded memory color lcd controller 1374play diagnostic utility document no. x26a-b-005-02 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center sed1374 1374play diagnostic utility x26a-b-005-02 issue date: 99/11/29 this page left blank
epson research and development page 3 vancouver design center 1374play diagnostic utility sed1374 issue date: 99/11/29 x26a-b-005-02 1374play 1374play is a utility which allows the user to easily read/write the sed1374 registers, look-up table and display memory. the user interface for 1374play is similar to the dos debug program; commands are received from the standard input device, and output is sent to the standard output device (console for intel and terminal for embedded platforms). this utility requires the target platform to support standard i/o. 1374play commands can be entered interactively using a keyboard/monitor or they can be executed from a script file. scripting is a powerful feature which allows command sequences played back from a file thus avoiding having to retype lengthy sequences. 1374play must be configured to work with each different hardware platform. consult documentation for the program 1374cfg.exe which can be used to configure 1374play. this software is designed to work with a variety of embedded and personal computer (pc) environments. for embedded environments the model employed is that of host.target. it is assumed that the system has a means of downloading software from the host to the target platform. typically this is done by a serial communication link. alternative methods include eprom, parallel port connection or network connection. it is beyond the scope of this document to provide support for target/host configurations. sed1374 supported evaluation platforms 1374play has been tested with the following sed1374 supported evaluation platforms: ? pc system with an intel 80x86 processor. ? m68332bcc (business card computer) board, revision b, with a motorola mc68332 processor. ? m68ec000idp (integrated development platform) board, revision 3.0, with a motorola m68ec000 processor. ? sh3-lcevb board, revision b, with an hitachi sh-3 hd6417780 processor. if the platform you are using is different from the above, please see the sed1374 programming notes and examples manual, document number x26a-g-002-xx.
page 4 epson research and development vancouver design center sed1374 1374play diagnostic utility x26a-b-005-02 issue date: 99/11/29 installation pc platform : copy the file 1374play.exe to a directory that is in the dos path on your hard drive. embedded platform : download the program 1374play to the system. usage pc platform : at the prompt, type 1374play [/?] . embedded platform : execute 1374play and at the prompt, type the command line argument. where: /? displays program revision information. the following commands are valid within the 1374play program. x index [data] reads/writes the registers. writes data to the register specified by the index when data is specified; otherwise the register is read. xa reads all registers. l index [data1 data2 data3] reads/writes look-up table (lut) values. writes data to the lut index when data is specified; otherwise the lut index is read. data must consist of 3 bytes: 1 red, 1 green, 1 blue. and range in value from 0x00 to 0x0f. la reads all lut values. f[w] addr1 addr2 data . . . fills bytes or words from address 1 to address 2 with data. data can be multiple values (e.g. f 0 20 1 2 3 4 fills address 0 to 0x20 with a repeating pattern of 1 2 3 4). r[w] addr [count] reads count of bytes or words from the address specified by addr. if count is not specified, then 16 bytes/words are read. w[w] addr data . . . writes bytes or words of data to address specified by addr. data can be multiple values e.g. w 0 1 2 3 4 writes the byte values 1 2 3 4 starting at address 0). i initializes the chip with user specified configuration.
epson research and development page 5 vancouver design center 1374play diagnostic utility sed1374 issue date: 99/11/29 x26a-b-005-02 m [bpp] returns information about the current mode. if bpp is specified then set the requested color depth. p 0|1|2 sets software power save mode 0-2. power save mode 0 is normal operation. h [lines] halts after specified lines of display. this feature halts the display during long read operations to prevent data from scrolling off the display. set 0 to disable. q quits this utility. ? displays help information. 1374play example 1. type 1374play to start the program. 2. type "?" for help. 3. type "i" to initialize the registers. 4. type "xa" to display the contents of the registers. 5. type "x 5" to read register 5. 6. type "x 3 10" to write 10 hex to register 3. 7. type "f 0 400 aa" to fill the first 400 hex bytes of display memory with aa hex. 8. type "f 0 a000 aa" to fill 40k bytes of display memory. 9. type "r 0 ff" to read the first 100 hex bytes of display memory. 10. type "q" to exit the program.
page 6 epson research and development vancouver design center sed1374 1374play diagnostic utility x26a-b-005-02 issue date: 99/11/29 scripting 1374play can be driven by a script file. this is useful when: ? there is no standard display output to monitor command entry and results. ? various registers must be quickly changed faster than can achieved by typing. ? the same series of keystrokes is being entered time and again. a script file is an ascii text file with one 1374play command per line. all scripts must end with a q (quit) command in order to return control to the operating system. the semi- colon is used as a comment delimitor. everything on a line after the semi-colon will be ignored. on a pc platform, a typical script command line is: 1374play < dumpregs.scr > results. this causes the script file dumpregs.scr to be interpreted and the results to be sent to the file results. example 1: the script file dumpregs.scr can be created with and text editor and will look like the following: ; this file initializes the sed1374 and reads the registers i ; initialize the registers. xa ; dump all the registers la ; and the lut q; exit comments ? all numeric values are considered to be hexadecimal unless identified otherwise. for example, 10 = 10h = 16 decimal; 10t = 10 decimal; 010b = 2 decimal. ? redirecting commands from a script file (pc platform) allows those commands to be executed as though they were typed.
epson research and development page 7 vancouver design center 1374play diagnostic utility sed1374 issue date: 99/11/29 x26a-b-005-02 program messages error: too many devices registered. there are too many display devices attached to the hal. the hal currently can manage only one device. error: could not register 1374 device. a 1374 device was not found at the configured addresses. check the configuration address using the 1374cfg configuration program. warning: did not detect 1374. the hal did not detect an sed1374, however 1374play will continue to function.
page 8 epson research and development vancouver design center sed1374 1374play diagnostic utility x26a-b-005-02 issue date: 99/11/29 this page left blank
sed1374 embedded memory color lcd controller 1374bmp demonstration program document no. x26a-b-006-01 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center sed1374 1374bmp demonstration program x26a-b-006-01 issue date: 98/10/20 this page left blank
epson research and development page 3 vancouver design center 1374bmp demonstration program sed1374 issue date: 98/10/20 x26a-b-006-01 1374bmp 1374bmp demonstrates sed1374 display capabilities by rendering bitmap images on the display. the 1374bmp display utility is designed to operate in a personal computer dos environment and must be configured to work with your display hardware. consult documentation for the program 1374cfg.exe which can be used to configure 1374bmp. 1374bmp is not supported on non-pc platforms. installation copy the file 1374bmp.exe to a directory that is in the dos path on your hard drive. usage at the prompt, type: 1374bmp bmp_file [/a[time]] [/l] [/p] [/?] . where: bmp_file the name of the file to display /a[time] automatic mode returns to the operating system after time seconds. if time is not specified the default is 5 seconds. this option is intended for use with batch files to automate displaying a series of images. /l override default configuration settings and set landscape display mode. /p override default configuration settings and set portrait display mode. /? displays the help screen comments ? 1374bmp currently views only windows bmp format images.
page 4 epson research and development vancouver design center sed1374 1374bmp demonstration program x26a-b-006-01 issue date: 98/10/20 program messages error: too many devices registered. there are too many display devices attached to the hal. the hal currently can manage only one device. error: could not register 1374 device. a 1374 device was not found at the configured addresses. check the configuration address using the 1374cfg configuration program. error: did not detect 1374. the hal was unable to read the revision code register on the sed1374. ensure that the sed1374 hardware is installed and that the hardware platform has been set up correctly.
sed1374 embedded memory color lcd controller 1374pwr power save utility document number: x26a-b-007-01 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center sed1374 1374pwr power save utility x26a-b-007-01 issue date: 98/10/27 this page left blank
epson research and development page 3 vancouver design center 1374pwr power save utility sed1374 issue date: 98/10/27 x26a-b-007-01 1374pwr the 1374pwr power save utility is a tool to assist in the testing of the software and hardware power save modes. refer to the section titled power save modes in the sed1374 programming notes and examples manual, document number x26a-g-002-xx, and the sed1374 functional hardware specification, document number x26a-a-001-xx for further information. the 1374pwr utility must be configured and/or compiled to work with your hardware platform. consult documentation for the program 1374cfg.exe which can be used to configure 1374pwr. this software is designed to work in both embedded and personal computer (pc) environ- ments. for the embedded environment, it is assumed that the system has a means of downloading software from the pc to the target platform. typically this is done by serial communications, where the pc uses a terminal program to send control commands and information to the target processor. alternatively, the pc can program an eprom, which is then placed in the target platform. some target platforms can also communicate with the pc via a parallel port connection, or an ethernet connection. sed1374 supported evaluation platforms 1374pwr has been designed to work with the following sed1374 supported evaluation platforms: ? pc system with an intel 80x86 processor. ? m68332bcc (business card computer) board, revision b, with a motorola mc68332 processor. ? m68ec000idp (integrated development platform) board, revision 3.0, with a motorola m68ec000 processor. ? sh3-lcevb board, revision b, with an hitachi sh-3 hd6417780 processor. if the platform you are using is different from the above, please see the sed1374 programming notes and examples manual, document number x26a-g-002-xx. installation pc platform : copy the file 1374pwr.exe to a directory that is in the dos path on your hard drive. embedded platform : download the program 1374pwr to the system.
page 4 epson research and development vancouver design center sed1374 1374pwr power save utility x26a-b-007-01 issue date: 98/10/27 usage pc platform : at the prompt, type 1374pwr [s0] [s1] [h0] [h1] . embedded platform : execute 1374pwr and at the prompt, type the command line argument. where: s0 resets software power save mode s1 sets software power save mode h0 resets (disables) hardware power save mode (reg[03h] bit 2) h1 sets ( enables) hardware power save mode (reg[03h] bit 2) /? displays this usage message program messages error: unknown command line argument. an invalid command line argument was entered. enter a valid command line argument. error: too many devices registered. there are too many display devices attached to the hal. the hal currently can manage only one device. error: could not register 1374 device. a 1374 device was not found at the configured addresses. check the configuration address using the 1374cfg configuration program. error: did not detect 1374. the hal was unable to read the revision code register on the sed1374. ensure that the sed1374 hardware is installed and that the hardware platform has been set up correctly.
sed1374 embedded memory color lcd controller windows? ce display drivers document number: x26a-e-001-01 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. microsoft and windows is a registered trademark of microsoft corpor ation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center sed1374 windows? ce display drivers x26a-e-001-01 issue date: 98/11/11 this page left blank
epson research and development page 3 vancouver design center windows? ce display drivers sed1374 issue date: 98/11/11 x26a-e-001-01 1 windows? ce display drivers the windows ce display drivers are designed to support the sed1374 embedded memory lcd controller running under the microsoft windows ce operating system. available drivers include: 4 bit-per-pixel landscape mode, and 4 bit-per-pixel portrait mode. for updated source code, visit epson research and development on the world wide web at www.erd.epson.com, or contact your seiko epson sales representative. 1.1 program requirements 1.2 example driver build build for cepc (x86) version 2.0/2.1 to build a windows ce v2.0/2.1 display driver for the cepc (x86) platform using a sdu1374b0c evaluation board, follow the instructions below: 1. install microsoft windows nt v4.0. 2. install microsoft visual c/c++ v5.0. 3. install the microsoft windows ce embedded toolkit (etk) by running setup.exe from the etk compact disc #1. 4. create a new project by following the procedure documented in creating a new project directory from the windows ce etk. alternately, use the current demo7 project included with the etk. follow the steps below to create a x86 demo7 shortcut on the windows nt v4.0 desktop which uses the current demo7 project: a. right click on the start menu on the taskbar. b. click on the item open all users and the start menu window will come up. c. click on the icon programs. d. click on the icon windows ce embedded development kit. e. drag the icon x86 demo1 onto the desktop using the right mouse button. f. click on copy here. g. rename the icon x86 demo1 on the desktop to x86 demo7 by right click- ing on the icon and choosing rename. video controller : sed1374 display type : lcd windows version : ce version 2.0/2.1
page 4 epson research and development vancouver design center sed1374 windows? ce display drivers x26a-e-001-01 issue date: 98/11/11 h. right click on the icon x86 demo7 and click on properties to bring up the x86 demo7 properties window. i. replace the string demo1 under the entry target with demo7. j. click on ok to finish. 1. create a sub-directory named 4bpp1374 under \wince\platform\cepc\drivers\display. 2. copy the source code to the 4bpp1374 subdirectory. 3. add an entry for the 4bpp1374 in the file \wince\platform\cepc\drivers\display\dirs. 4. modify the file config.bib (using any text editor such as notepad) to set the system ram size, the sed1374 io port and display buffer address mapping. note that config.bib is located in x:\wince\platform\cepc\files (where x: is the drive letter). since the sdu1374b0c maps the 64k byte region from d0000h to dffffh, make sure no other devices occupy this area. the following lines should be in con- fig.bib: nk 80200000 00500000 ramimge ram 80700000 00500000 ram note dispdrvr.c should include the following: #define physicalportaddr 0x000df000l #define physicalvmemaddr 0x000d0000l 5. edit the file platform.bib (located in x:\wince\platform\cepc\files) to set the de- fault display driver to the file 4bpp1374.dll. 4bpp1374.dll will be created during the build in step 13. you may replace the following lines in platform.bib: if cepc_ddi_vga2bpp ddi.dll $(_flatreleasedir)\ddi_vga2.dll nk sh endif if cepc_ddi_vga8bpp ddi.dll $(_flatreleasedir)\ddi_vga8.dll nk sh endif if cepc_ddi_vga2bpp ! if cepc_ddi_vga8bpp ! ddi.dll $(_flatreleasedir)\ddi_s364.dll nk sh endif endif with this line: ddi.dll $(_flatreleasedir)\4bpp1374.dll nk sh
epson research and development page 5 vancouver design center windows? ce display drivers sed1374 issue date: 98/11/11 x26a-e-001-01 6. edit the file dispdrvr.c (located in x:\wince\platform\odo\drivers\display\ 4bpp1374) to set the desired screen resolution, color depth (bpp) and panel type. the sample code defaults to a 320x240 color single passive 4-bit lcd panel. to support one of the other listed panels, change the #define statement. 7. generate the proper building environment by double-clicking on the sample project icon (i.e. x86 demo7). 8. type blddemo at the dos prompt of the x86 demo7 window to gen- erate a windows ce image file (nk.bin). 1.3 example installation installation for cepc environment windows ce v2.0 can be loaded on a pc using a floppy drive or a hard drive. the two methods are described below: to load cepc from a floppy drive: 1. create a dos bootable floppy disk. 2. edit config.sys on the floppy disk to contain the following line only. device=a:\himem.sys 3. edit autoexec.bat on the floppy disk to contain the following lines. mode com1:9600,n,8,1 loadcepc /b:9600 /c:1 c:\wince\release\nk.bin 4. copy loadcepc.exe from c:\wince\public\common\oak\bin to the bootable floppy disk. 5. confirm that nk.bin is located in c:\wince\release. 6. reboot the system from the bootable floppy disk. to load cepc from a hard drive: 1. copy loadcepc.exe to the root directory of the hard drive. 2. edit config.sys on the hard drive to contain the following line only. device=c:\himem.sys 3. edit autoexec.bat on the hard drive to contain the following lines. mode com1:9600,n,8,1 loadcepc /b:9600 /c:1 c:\wince\release\nk.bin 4. confirm that nk.bin is located in c:\wince\release. 5. reboot the system from the hard drive.
page 6 epson research and development vancouver design center sed1374 windows? ce display drivers x26a-e-001-01 issue date: 98/11/11 1.4 comments ? at the time of this printing, the drivers have been tested on the x86 cpus and have only been run with version 2.0 of the etk. we are constantly updating the drivers so please check our website at www.erd.epson.com, or contact your seiko epson or epson electronics america sales representative.
sed1374 embedded memory color lcd controller sdu1374b0c rev. 1.0 isa bus evaluation board user manual document number: x26a-g-005-01 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center sed1374 sdu1374b0c rev. 1.0 isa bus evaluation board user manual x26a-g-005-01 issue date: 98/10/26 this page left blank
epson research and development page 3 vancouver design center sdu1374b0c rev. 1.0 isa bus evaluation board user manual sed1374 issue date: 98/10/26 x26a-g-005-01 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 installation and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 lcd interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4 cpu/bus interface connector pinouts . . . . . . . . . . . . . . . . . . . . . . . . 11 5 host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 6 technical description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.1 isa bus support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.1.1 display adapter card support . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.1.2 expanded memory manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.2 non-isa bus support . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6.3 embedded memory support . . . . . . . . . . . . . . . . . . . . . . . . . 15 6.4 decode logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6.5 clock input support . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6.6 lcd panel voltage setting . . . . . . . . . . . . . . . . . . . . . . . . . 16 6.7 monochrome lcd panel support . . . . . . . . . . . . . . . . . . . . . . . 16 6.8 color passive lcd panel support . . . . . . . . . . . . . . . . . . . . . . 1 6 6.9 color tft/d-tfd lcd panel support . . . . . . . . . . . . . . . . . . . . 16 6.10 power save modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.11 adjustable lcd panel negative power supply . . . . . . . . . . . . . . . . . 17 6.12 adjustable lcd panel positive power supply . . . . . . . . . . . . . . . . . . 17 6.13 cpu/bus interface header strips . . . . . . . . . . . . . . . . . . . . . . . 18 7 parts list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 8 schematic diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
page 4 epson research and development vancouver design center sed1374 sdu1374b0c rev. 1.0 isa bus evaluation board user manual x26a-g-005-01 issue date: 98/10/26 this page left blank
epson research and development page 5 vancouver design center sdu1374b0c rev. 1.0 isa bus evaluation board user manual sed1374 issue date: 98/10/26 x26a-g-005-01 list of tables table 2-1: configuration dip switch settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 table 2-2: host bus selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 table 2-3: jumper settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 table 3-1: lcd signal connector (j5) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 table 4-1: cpu/bus connector (h1) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 table 4-2: cpu/bus connector (h2) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 table 5-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 list of figures figure 8-1: sed1374b0c schematic diagram (1 of 4) . . . . . . . . . . . . . . . . . . . . . . . . 20 figure 8-2: sed1374b0c schematic diagram (2 of 4) . . . . . . . . . . . . . . . . . . . . . . . . 21 figure 8-3: sed1374b0c schematic diagram (3 of 4) . . . . . . . . . . . . . . . . . . . . . . . . 22 figure 8-4: sed1374b0c schematic diagram (4 of 4) . . . . . . . . . . . . . . . . . . . . . . . . 23
page 6 epson research and development vancouver design center sed1374 sdu1374b0c rev. 1.0 isa bus evaluation board user manual x26a-g-005-01 issue date: 98/10/26 this page left blank
epson research and development page 7 vancouver design center sdu1374b0c rev. 1.0 isa bus evaluation board user manual sed1374 issue date: 98/10/26 x26a-g-005-01 1 introduction this manual describes the setup and operation of the sdu1374b0c rev. 1.0 evaluation board. implemented using the sed1374 embedded memory color lcd controller, the sdu1374b0c board is designed for the 16-bit isa bus environment. to accommodate other bus architectures, the sdu1374b0c board also provides cpu/bus interface connectors. for more information regarding the sed1374, refer to the sed1374 hardware functional specification, document number x26a-a-001-xx. 1.1 features ? 80-pin qfp14 package. ? smt technology for all appropriate devices. ? 4/8-bit monochrome and color passive lcd panel support. ? 9/12-bit lcd tft/d-tfd panel support. ? selectable 3.3v or 5.0v lcd panel support. ? oscillator support for clki (up to 50mhz with internal clock divide or 25mhz with no internal clock divide). ? embedded 40k byte sram display buffer for 1/2/4 bit-per-pixel (bpp), 2/4/16 level gray shade display and 1/2/4/8 bpp, 2/4/16/256 level color display. ? support for software and hardware power save modes. ? on-board adjustable lcd bias positive power supply (+23v to 40v). ? on-board adjustable lcd bias negative power supply (-14v to -24v). ? 16-bit isa bus support. ? cpu/bus interface header strips for non-isa bus support.
page 8 epson research and development vancouver design center sed1374 sdu1374b0c rev. 1.0 isa bus evaluation board user manual x26a-g-005-01 issue date: 98/10/26 2 installation and configuration the sed1374 has five configuration inputs, cnf[4:0], which are read on the rising edge of reset# and are fully configurable on this evaluation board. one six-position dip switch is provided on the board to configure these five configuration inputs and to enable/disable hardware power save mode. the following settings are recommended when using the sdu1374b0c with the isa bus. table 2-1: configuration dip switch settings switch signal closed (0 or low) open (1 or high) sw1-1 cnf0 see host bus selection table below see host bus selection table below sw1-2 cnf1 sw1-3 cnf2 sw1-4 cnf3 little endian big endian sw1-5 cnf4 active low lcdpwr signal active high lcdpwr signal sw1-6 gpio0 hardware suspend disable hardware suspend enable = recommended settings (configured for isa bus support) table 2-2: host bus selection s1-3 s1-2 s1-1 bs# host bus interface 0 0 0 x sh-4 bus interface 0 0 1 x sh-3 bus interface 0 1 0 x reserved 0 1 1 x mc68k bus interface #1, 16-bit 1 0 0 x reserved 1 0 1 x mc68k bus interface #2, 16-bit 1100reserved 1101reserved 1 1 1 0 generic #1, 16-bit 1 1 1 1 generic #2, 16-bit = recommended settings (configured for isa bus support)
epson research and development page 9 vancouver design center sdu1374b0c rev. 1.0 isa bus evaluation board user manual sed1374 issue date: 98/10/26 x26a-g-005-01 table 2-3: jumper settings description 1-2 2-3 jp1 iovdd selection 5.0v iovdd 3.3v iovdd jp2 bs# signal selection pulled up to iovdd no connection jp3 rd/wr# signal selection pulled up to iovdd no connection jp4 lcd panel voltage selection 5.0v lcd panel 3.3v lcd panel = recommended settings (configured for isa bus support)
page 10 epson research and development vancouver design center sed1374 sdu1374b0c rev. 1.0 isa bus evaluation board user manual x26a-g-005-01 issue date: 98/10/26 3 lcd interface pin mapping table 3-1: lcd signal connector (j5) pinout connector single passive panel dual passive panel color tft/d-tfd pin name pin # color mono color mono 4-bit 8-bit 8-bit alternate format 4-bit 8-bit 8-bit 8-bit 9-bit 12-bit bfpdat0 1 d0 d0 d0 ld0 ld0 r2 r3 bfpdat1 3 d1 d1 d1 ld1 ld1 r1 r2 bfpdat2 5 d2 d2 d2 ld2 ld2 r0 r1 bfpdat3 7 d3 d3 d3 ld3 ld3 g2 g3 bfpdat4 9 d0 d4 d4 d0 d4 ud0 ud0 g1 g2 bfpdat5 11 d1 d5 d5 d1 d5 ud1 ud1 g0 g1 bfpdat6 13 d2 d6 d6 d2 d6 ud2 ud2 b2 b3 bfpdat7 15 d3 d7 d7 d3 d7 ud3 ud3 b1 b2 bfpdat8 17 b0 b1 bfpdat9 19 r0 bfpdat10 21 g0 bfpdat11 23 b0 bfpshift 33 fpshift fpshift fpshift fpshift fpshift fpshift fpshift fpshift fpshift bfpshift2 35 fpshift2 bfpline 37 fpline fpline fpline fpline fpline fpline fpline fpline fpline bfpframe 39 fpframe fpframe fpframe fpframe fpframe fpframe fpframe fpframe fpframe gnd 2-26 (even pins) gnd gnd gnd gnd gnd gnd gnd gnd gnd n / c 28 vlcd 30 lcd panel negative bias voltage (-18v to -23v) lcdvcc 32 +3.3v or +5v (selectable with jp4) +12v 34 +12v +12v +12v +12v +12v +12v +12v +12v +12v vddh 36 lcd panel positive bias voltage (+24v to +38v) bdrdy 38 mod mod mod mod mod mod drdy drdy blcdpwr 40 lcdpwr lcdpwr lcdpwr lcdpwr lcdpwr lcdpwr lcdpwr lcdpwr lcdpwr
epson research and development page 11 vancouver design center sdu1374b0c rev. 1.0 isa bus evaluation board user manual sed1374 issue date: 98/10/26 x26a-g-005-01 4 cpu/bus interface connector pinouts table 4-1: cpu/bus connector (h1) pinout connector pin no. cpu/bus pin name comments 1 sd0 connected to db0 of the sed1374 2 sd1 connected to db1 of the sed1374 3 sd2 connected to db2 of the sed1374 4 sd3 connected to db3 of the sed1374 5 gnd ground 6 gnd ground 7 sd4 connected to db4 of the sed1374 8 sd5 connected to db5 of the sed1374 9 sd6 connected to db6 of the sed1374 10 sd7 connected to db7 of the sed1374 11 gnd ground 12 gnd ground 13 sd8 connected to db8 of the sed1374 14 sd9 connected to db9 of the sed1374 15 sd10 connected to db10 of the sed1374 16 sd11 connected to db11 of the sed1374 17 gnd ground 18 gnd ground 19 sd12 connected to db12 of the sed1374 20 sd13 connected to db13 of the sed1374 21 sd14 connected to db14 of the sed1374 22 sd15 connected to db15 of the sed1374 23 reset# connected to the reset# signal of the sed1374 24 gnd ground 25 gnd ground 26 gnd ground 27 +12v 12 volt supply 28 +12v 12 volt supply 29 we0# connected to the we0# signal of the sed1374 30 wait# connected to the wait# signal of the sed1374 31 cs# connected to the cs# signal of the sed1374 32 nc not connected 33 we1# connected to the we1# signal of the sed1374 34 nc not connected
page 12 epson research and development vancouver design center sed1374 sdu1374b0c rev. 1.0 isa bus evaluation board user manual x26a-g-005-01 issue date: 98/10/26 table 4-2: cpu/bus connector (h2) pinout connector pin no. cpu/bus pin name comments 1 sa0 connected to ab0 of the sed1374 2 sa1 connected to ab1 of the sed1374 3 sa2 connected to ab2 of the sed1374 4 sa3 connected to ab3 of the sed1374 5 sa4 connected to ab4 of the sed1374 6 sa5 connected to ab5 of the sed1374 7 sa6 connected to ab6 of the sed1374 8 sa7 connected to ab7 of the sed1374 9 gnd ground 10 gnd ground 11 sa8 connected to ab8 of the sed1374 12 sa9 connected to ab9 of the sed1374 13 sa10 connected to ab10 of the sed1374 14 sa11 connected to ab11 of the sed1374 15 sa12 connected to ab12 of the sed1374 16 sa13 connected to ab13 of the sed1374 17 gnd ground 18 gnd ground 19 sa14 connected to ab14 of the sed1374 20 sa15 connected to ab14 of the sed1374 21 sa16 connected to ab16 of the sed1374 22 sa17 connected to ab17 of the sed1374 23 sa18 connected to ab18 of the sed1374 24 sa19 connected to ab19 of the sed1374 25 gnd ground 26 gnd ground 27 vcc 5 volt supply 28 vcc 5 volt supply 29 rd/wr# connected to the r/w# signal of the sed1374 30 bs# connected to the bs# signal of the sed1374 31 busclk connected to the bclk signal of the sed1374 32 rd# connected to the rd# signal of the sed1374 33 nc not connected 34 nc not connected
epson research and development page 13 vancouver design center sdu1374b0c rev. 1.0 isa bus evaluation board user manual sed1374 issue date: 98/10/26 x26a-g-005-01 5 host bus interface pin mapping table 5-1: host bus interface pin mapping sed1374 pin names sh-3 sh-4 mc68k #1 mc68k #2 generic bus #1 generic bus #2 ab[15:1] a[15:1] a[15:1] a[15:1] a[15:1] a[15:1] a[15:1] ab0 a0 a0 lds# a0 a0 a0 db[15:0] d[15:0] d[15:0] d[15:0] d[15:0] d[15:0] d[15:0] we1# we1# we1# uds# ds# we1# bhe# cs# csn# csn# external decode external decode external decode external decode bclk ckio ckio bclk bclk bclk bclk bs# bs# bs# as# as# connect to v ss connect to io v dd rd/wr# rd/wr# rd/wr# r/w# r/w# rd1# connect to io v dd rd# rd# rd# connect to io v dd siz1 rd0# rd# we0# we0# we0# connect to io v dd siz0 we0# we# wait# wait# rdy# dtack# dsack1# wait# wait# reset# reset# reset# reset# reset# reset# reset#
page 14 epson research and development vancouver design center sed1374 sdu1374b0c rev. 1.0 isa bus evaluation board user manual x26a-g-005-01 issue date: 98/10/26 6 technical description 6.1 isa bus support this board has been designed to support the 16-bit isa bus environment and can be used in conjunction with either a vga or a monochrome display adapter card. there are 5 configuration inputs associated with the host interface (cnf[3:0] and bs#). refer to table 2-3: jumper settings and table 5-1: host bus interface pin mapping for complete details. 6.1.1 display adapter card support when using the sdu1374b0b in conjunction with another primary display adapter (vga or monochrome) the following applies: isa or vl bus vga display adapter when the sdu1374b0b board is used with an isa or vl bus vga display adapter, the vga card must have a 16-bit bios to prevent conflicts during 16-bit accesses (memcs16#). if an 8-bit vga adapter card is installed in the system being used, it must be removed and the screen display routed through a com port to a terminal display device. pci bus vga display adapter all pci based vga display adapters can be used in conjunction with the sdu1374b0c board. monochrome display adapter all monochrome display adapters can be used in conjunction with the sdu1374b0c board. 6.1.2 expanded memory manager if a memory manager is being used for system memory, the address range d0000h to dffffh must be excluded from use as this range is used by the sdu1374b0c.
epson research and development page 15 vancouver design center sdu1374b0c rev. 1.0 isa bus evaluation board user manual sed1374 issue date: 98/10/26 x26a-g-005-01 6.2 non-isa bus support the sdu1374b0c board is specifically designed to support the standard 16-bit isa bus; however, the sed1374 directly supports many other host bus interfaces. header strips h1 and h2 are provided and contain all the necessary io pins to interface to these host buses. see cpu/bus interface connector pinouts on page 11; table 2-1: configuration dip switch settings, on page 8; and table 2-3: jumper settings, on page 9 for details. when using the header strips to provide the bus interface observe the following: ? all io signals on the isa bus card edge must be isolated from the isa bus (do not plug the card into a computer). voltage lines are provided on the header strips. ? u7, a tibpal16l8-15 pal, is currently used to provide the sed1374 cs# (pin 74), reset# (pin 73) and other decode logic signals for isa bus use. this functionality must now be provided externally; remove the pal from its socket to eliminate conflicts resulting from two different outputs driving the same input. refer to table 5-1: host bus interface pin mapping for connection details. note when using a 3.3v host bus interface, iovdd must be set to 3.3v by setting jumper (jp1) to the 2-3 position. refer to table 2-3: jumper settings, on page 9. 6.3 embedded memory support the sed1374 contains 40k bytes of 16-bit sram used for the display buffer. the sram starting address is set at d0000h. starting at this address, the board design decodes a 64k byte segment accommodating both the 40k byte display buffer and the sed1374 internal register set. the sed1374 registers are mapped into the upper 32 bytes of the 64k byte segment (dffe0h to dffffh). 6.4 decode logic all the required decode logic is provided through a tibpal16l8-15 pal (u7, socketed). this pal contains the following equations. !cs = (address >= ^hd0000) & (address <= ^hdffff) & refresh & !reset; !memcs16= (address1 >= ^h0c0000) & (address1 <= ^h0dffff); reset_ = !reset;
page 16 epson research and development vancouver design center sed1374 sdu1374b0c rev. 1.0 isa bus evaluation board user manual x26a-g-005-01 issue date: 98/10/26 6.5 clock input support the input clock (clki) frequency can be up to 50.0mhz for the sed1374 if the internal clock divide by 2 is set. if the clock divide is not used, the maximum clki frequency is 25mhz. a 25.0mhz oscillator (u2, socketed) is provided as the default clock source. 6.6 lcd panel voltage setting the sdu1374b0c board supports both 3.3v and 5.0v lcd panels through the single lcd connector j5. the voltage level is selected by setting jumper j4 to the appropriate position. refer to table 2-3: jumper settings, on page 9 for setting this jumper. 6.7 monochrome lcd panel support the sed1374 directly supports 4 and 8-bit, dual and single, monochrome passive lcd panels. all necessary signals are provided on the 40-pin ribbon cable header j5. the interface signals on the cable are alternated with grounds to reduce crosstalk and noise. refer to table 3-1: lcd signal connector (j5) pinout, on page 10 for specific connection information. 6.8 color passive lcd panel support the sed1374 directly supports 4 and 8, dual and single, color passive lcd panels. all the necessary signals are provided on the 40-pin ribbon cable header j5. the interface signals on the cable are alternated with grounds to reduce crosstalk and noise. refer to table 3-1: lcd signal connector (j5) pinout, on page 10 for specific connection information. 6.9 color tft/d-tfd lcd panel support the sed1374 directly supports 9 and 12-bit active matrix color tft/d-tfd panels. all the necessary signals can also be found on the 40-pin lcd connector j5. the interface signals on the cable are alternated with grounds to reduce crosstalk and noise. refer to table 3-1: lcd signal connector (j5) pinout, on page 10 for connection infor- mation.
epson research and development page 17 vancouver design center sdu1374b0c rev. 1.0 isa bus evaluation board user manual sed1374 issue date: 98/10/26 x26a-g-005-01 6.10 power save modes the sed1374 supports one hardware and one software power save mode. these modes are controlled by the utility 1374pwr. the hardware power save mode needs to be enabled by 1374pwr and then activated by dip switch sw1-6. see table 2-1: configuration dip switch settings, on page 8 for details on setting this switch. 6.11 adjustable lcd panel negative power supply most monochrome passive lcd panels require a negative power supply to provide between -18v and -23v (i out =45ma). for ease of implementation, such a power supply has been provided as an integral part of this design. the vlcd power supply can be adjusted by r21 to give an output voltage from -14v to -23v, and is enabled/disabled by the sed1374 control signal lcdpwr. lcdpwr is an sed1374 output signal which is configurable as active high or active low by the cnf4 signal status on the rising edge of the reset# signal. for the proper operation of the vlcd power supply, lcdpwr must be configured as active low. determine the panels specific power requirements and set the potentiometer accordingly before connecting the panel. 6.12 adjustable lcd panel positive power supply most color passive lcd panels and most single monochrome 640x480 passive lcd panels require a positive power supply to provide between +23v and +40v (i out =45ma). for ease of implementation, such a power supply has been provided as an integral part of this design. the v ddh power supply can be adjusted by r15 to provide an output voltage from +23v to +40v and is enabled/disabled by the sed1374 control signal lcdpwr. lcdpwr is an sed1374 output signal which is configurable as active high or active low by the cnf4 signal status on the rising edge of the reset# signal. for the proper operation of the vddh power supply, lcdpwr must be configured as active low. determine the panels specific power requirements and set the potentiometer accordingly before connecting the panel.
page 18 epson research and development vancouver design center sed1374 sdu1374b0c rev. 1.0 isa bus evaluation board user manual x26a-g-005-01 issue date: 98/10/26 6.13 cpu/bus interface header strips all of the cpu/bus interface pins of the sed1374 are connected to the header strips h1 and h2 for easy interface to a cpu/bus other than isa. refer to table 4-1: cpu/bus connector (h1) pinout, on page 11 and table 4-2: cpu/bus connector (h2) pinout, on page 12 for specific settings. note these headers only provide the cpu/bus interface signals from the sed1374. when another host bus interface is selected by cnf[3:0] and bs#, appropriate external decode logic must be used to access the sed1374. refer to table 5-1: host bus interface pin mapping, on page 13 for connection details.
epson research and development page 19 vancouver design center sdu1374b0c rev. 1.0 isa bus evaluation board user manual sed1374 issue date: 98/10/26 x26a-g-005-01 7 parts list item # qty/board designation part value description 1 13 c1-c11, c15,c16 0.1uf, 5%, 50v 0805 ceramic capacitor 2 1 c12 1uf, 10%, 16v tantalum capacitor size a 3 2 c13, c14 10uf, 10%, 25v tantalum capacitor size d 4 2 c17, c21 47uf, 10%, 16v tantalum capacitor size d 5 3 c18-c20 4.7uf, 10%, 50v tantalum capacitor size d 6 1 c22 56uf, 20%, 63v electrolytic, radial, low esr 7 2 h1,h2 con34a header 0.1 17x2 header, pth 8 4 jp1-jp4 header 3 0.1 1x3 header, pth 9 1 j1 at con-a isa bus gold-fingers 10 1 j2 at con-b isa bus gold-fingers 11 1 j3 at con-c isa bus gold-fingers 12 1 j4 at con-d isa bus gold-fingers 13 1 j5 con40a shrouded header 2x20, pth, center key 14 1 l1 1h mci-1812 inductor 15 3 l2-l4 ferrite bead philips bds3/3/8.9-4s2 16 1 q1 2n3906 pnp signal transistor, sot23 17 1 q2 2n3903 npn signal transistor, sot23 18 6 r1-r6 15k, 5% 0805 resistor 19 7 r7-r13 10k, 5% 0805 resistor 20 1 r14 470k, 5% 0805 resistor 21 1 r15 200k 200k trim pot spectrol 63s204t607 (or equivalent) 22 1 r16 14k, 1% 0805 resistor 23 2 r17, r18 1k, 5% 0805 resistor 24 2 r19, r20 100k, 5% 0805 resistor 25 1 r21 100k 100k trim pot spectrol 63s104t607 (or equivalent) 26 1 s1 sw dip-6 6 position dip switch 27 1 u1 sed1374f0a qfp14-80, 80 pin, smt 28 1 u2 25.0 mhz oscillator fox 25mhz oscillator or equiv., 14 pin dip socketed 29 3 u3-u5 74ahc244 so-22, ti74ahc244 30 1 u6 lt1117cm-3.3 linear technology 5v to 3.3v regulator, 800ma 31 1 u7 tibpal16l8-15 ti pal, 20 pin dip, socketed. 32 1 u8 74als125 so-20, ti74als125 33 1 u9 rd-0412 xentek rd-0412, positive ps 34 1 u10 epn001 xentek epn001 negative ps
page 20 epson research and development vancouver design center sed1374 sdu1374b0c rev. 1.0 isa bus evaluation board user manual x26a-g-005-01 issue date: 98/10/26 8 schematic diagrams figure 8-1: sed1374b0c schematic diagram (1 of 4) 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 a a b b c c d d by-pass capacitors (1 per power pin) 1 2 5.0v iovdd 2 3 3.3v iovdd 1.0 epson re search & development, inc. sdu1374b0c isa-bus rev. 1.0 evaluation board : 1374foa chip b 14 friday, october 09, 1998 size document number rev date: sheet of fpdat2 sd2 fpdat4 sd11 sd4 sa3 sd13 sd5 fpdat[0..7] sd6 sa15 sd8 sa7 fpdat0 sd10 sd7 sd1 sa[0..19] sd[0..15] sd12 sd3 sa2 sa5 sd14 sa13 sa1 fpdat3 sa4 sa0 sd15 sa10 sa9 sa8 fpdat1 sd9 sd0 sa14 sa12 sa11 sa6 fpdat5 fpdat6 fpdat7 cnf4 cnf2 cnf1 cnf2 cnf0 cnf3 cnf3 cnf4 cnf[0..4] cnf1 cnf0 3.3v iovdd 3.3v iovdd iovdd iovdd iovdd vcc c1 0.1uf c6 0.1uf c7 0.1uf c5 0.1uf jp2 header 3 1 2 3 jp3 header 3 1 2 3 r4 15k r3 15k r2 15k r1 15k r5 15k c2 0.1uf c4 0.1uf c3 0.1uf jp1 header 3 1 2 3 r6 15k s1 sw dip-6 1 2 3 4 5 6 12 11 10 9 8 7 u1 sed1374f0a 70 69 68 67 66 65 64 63 62 59 58 57 56 55 54 53 37 36 35 34 32 31 30 74 43 61 20 40 72 60 50 27 80 19 18 17 16 15 14 13 12 11 9 8 7 6 5 4 3 33 49 48 47 46 45 79 78 77 76 75 73 51 71 2 44 1 21 10 41 52 29 26 25 24 23 39 38 28 42 22 ab0 ab1 ab2 ab3 ab4 ab5 ab6 ab7 ab8 ab9 ab10 ab11 ab12 ab13 ab14 ab15 fpdat0 fpdat1 fpdat2 fpdat3 fpdat5 fpdat6 fpdat7 cs# lcdpwr corevdd vss vss vss vss vss vss vss db0 db1 db2 db3 db4 db5 db6 db7 db8 db9 db10 db11 db12 db13 db14 db15 fpdat4 cnf0 cnf1 cnf2 cnf3 cnf4 r/w# we1# we0# rd# bs# reset# clki bclk wait# testen corevdd corevdd iovdd corevdd iovdd iovdd fpdat8/gpio1 fpdat9gpio2 fpdat10/gpio3 fpdat11/gpio4 fpframe fpline fpshift drdy gpio0 sd[0..15] lcdpwr drdy fpframe fpline fpshift fpdat[0..7] rd/wr# we1# we0# cs# busclk clki reset# rd# wait# bs# sa[0..19] fpdat8 fpdat9 fpdat10 fpdat11 cnf[0..4] suspend bs# rd/wr# cnf[0..4] suspend
epson research and development page 21 vancouver design center sdu1374b0c rev. 1.0 isa bus evaluation board user manual sed1374 issue date: 98/10/26 x26a-g-005-01 figure 8-2: sed1374b0c schematic diagram (2 of 4) 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 a a b b c c d d selectable 3.3 v / 5.0v color/mono lcd connector 1 2 5.0v lcd panels 2 3 3.3v lcd panels 1.0 epson re search & development, inc. sdu1374b0c isa-bus rev. 1.0 evaluation card : lcd connector & headers b 24 friday, october 09, 1998 size document number rev date: sheet of fpdat[0..7] bfpdat0 bfpdat1 bfpdat2 bfpdat3 bfpdat4 bfpdat5 bfpdat6 bfpdat7 bfpdat8 bfpdat9 bfpdat10 bfpdat11 fpdat0 fpdat1 fpdat2 fpdat3 fpdat4 fpdat5 fpdat6 fpdat7 fpdat8 fpdat9 fpdat10 fpdat11 sa[0..19] sa1 sa3 sa9 sa11 sa13 sa15 sa17 sa19 sa0 sa2 sa4 sa6 sa8 sa10 sa12 sa14 sa16 sa18 sa5 sa7 sd14 sd9 sd13 sd12 sd7 sd11 sd10 sd8 sd5 sd3 sd6 sd4 sd1 sd[0..15] sd2 sd0 sd15 fpshift lcdvcc lcdvcc fpframe blcdpwr bclki drdy bdrdy fpline bfpframe bfpshift lcdpwr bfpline +12v vddh vlcd vcc vcc vcc vcc +12v +12v 3.3v vcc j5 con40a 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 u3 74ahc244 2 18 4 16 6 14 8 12 11 9 13 7 15 5 17 3 1 19 20 10 1a1 1y1 1a2 1y2 1a3 1y3 1a4 1y4 2a1 2y1 2a2 2y2 2a3 2y3 2a4 2y4 1g 2g vcc gnd u4 74ahc244 2 18 4 16 6 14 8 12 11 9 13 7 15 5 17 3 1 19 20 10 1a1 1y1 1a2 1y2 1a3 1y3 1a4 1y4 2a1 2y1 2a2 2y2 2a3 2y3 2a4 2y4 1g 2g vcc gnd c8 0.1uf c9 0.1uf jp4 header 3 1 2 3 + c12 1uf 16v u6 lt1117cm-3.3 3 1 2 vin adj vout c11 0.1uf h1 header 17x2 12 34 56 78 910 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 h2 header 17x2 12 34 56 78 910 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 c10 0.1uf u5 74ahc244 2 18 4 16 6 14 8 12 11 9 13 7 15 5 17 3 1 19 20 10 1a1 1y1 1a2 1y2 1a3 1y3 1a4 1y4 2a1 2y1 2a2 2y2 2a3 2y3 2a4 2y4 1g 2g vcc gnd u2 25.0mhz 1 8 7 14 nc out gnd vcc fpshift drdy fpline fpframe fpdat[0..7] fpdat8 fpdat9 fpdat10 fpdat11 lcdpwr bs# rd# wait# we0# cs# reset# we1# sa[0..19] sd[0..15] rd/wr# busclk bclki clki bclki
page 22 epson research and development vancouver design center sed1374 sdu1374b0c rev. 1.0 isa bus evaluation board user manual x26a-g-005-01 issue date: 98/10/26 figure 8-3: sed1374b0c schematic diagram (3 of 4) 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 a a b b c c d d memcs16 1.0 epso n research & development, inc. sdu1374b0b isa-bus rev. 1.0 evalu ation board : isa-bus and pal decode b 34 thursday, october 08, 1998 size document number rev date: sheet of sd7 sd6 sd5 sd4 sd3 sd2 sd1 sd0 sd8 sd9 sd10 sd11 sd12 sd13 sd14 sd15 sd[0..15] sa[0..19] sa9 sa10 la21 sa14 sa17 sa8 sa15 sa0 sa4 sa13 la23 la[17..23] sa19 la19 la18 sa7 sa3 la20 sa16 sa6 sa2 sa11 sa12 la22 la17 sa1 sa18 sa5 sa[0..19] la[17..23] la19 sa19 la17 sa18 la21 la18 la23 la22 la20 sa17 sa16 iovdd vcc iovdd vcc +12v iovdd iovdd vcc iovdd iovdd vcc vcc j1 at con-a 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 /iochck sd7 sd6 sd5 sd4 sd3 sd2 sd1 sd0 iochrdy aen sa19 sa18 sa17 sa16 sa15 sa14 sa13 sa12 sa11 sa10 sa9 sa8 sa7 sa6 sa5 sa4 sa3 sa2 sa1 sa0 j2 at con-b 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 gnd reset +5v irq9 -5v drq2 -12v ows +12v gnd /smemw /smemr /iow /ior /dack3 drq3 /dack1 drq1 /refresh clk irq7 irq6 irq5 irq4 irq3 /dack2 t/c bale +5v osc gnd j4 at con-d 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 /memcs16 /iocs16 irq10 irq11 irq12 irq15 irq14 /dack0 drq0 /dack5 drq5 /dack6 drq6 /dack7 drq7 +5v master gnd r10 10k + c14 10uf r9 10k + c13 10uf j3 at con-c 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 /sbhe la23 la22 la21 la20 la19 la18 la17 /memr /memw sd8 sd9 sd10 sd11 sd12 sd13 sd14 sd15 r7 10k r8 10k r11 10k r12 10k r13 10k c15 0.1uf u7 tibpal16l8-15 1 2 3 4 5 6 7 8 9 11 19 18 17 16 15 14 13 12 20 10 i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 o2 i/o6 i/o5 i/o4 i/o3 i/o2 i/o1 o1 vcc gnd u8a 74als125 2 3 14 1 7 c16 0.1uf refresh# reset memcs16# we1# sd[0..15] sa[0..19] la[17..23] wait# busclk we0# rd# cs# la[17..23] reset# sa[0..19] reset refresh# memcs16#
epson research and development page 23 vancouver design center sdu1374b0c rev. 1.0 isa bus evaluation board user manual sed1374 issue date: 98/10/26 x26a-g-005-01 figure 8-4: sed1374b0c schematic diagram (4 of 4) 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 a a b b c c d d 1.0 epson re search & development, inc. sdu1374b0c isa-bus rev. 1.0 evaluati on board : lcd power supply b 44 friday, october 09, 1998 size document number rev date: sheet of psvcc psvcc vcc psiovdd psvcc psvcc iovdd psiovdd vlcd vddh + c20 4.7uf/50v r18 1k r19 100k r20 100k q2 2n3903 2 1 3 r14 470k r15 200k 1 3 2 r16 14k + c18 4.7uf/50v + c19 4.7uf/50v + c21 47uf / 16v + c22 56uf/35v low esr + c17 47uf/16v r17 1k r21 100k 1 3 2 u9 rd-0412 1 2 3 4 5 6 7 8 9 10 11 12 vout_adj dc_in remote gnd gnd gnd gnd gnd nc gnd gnd dc_out u10 epn001 1 2 3 4 5 6 7 8 9 11 10 dc_out dc_out nc gnd gnd vout_adj nc nc nc dc_in dc_in l1 1uh 2 5 q1 2n3906 2 1 3 l3 1 2 l4 1 2 l2 1 2 psgnd psgnd psgnd lcdpwr
page 24 epson research and development vancouver design center sed1374 sdu1374b0c rev. 1.0 isa bus evaluation board user manual x26a-g-005-01 issue date: 98/10/26 this page left blank
sed1374 embedded memory color lcd controller interfacing to the toshiba mips tx3912 processor document number: x26a-g-004-01 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center sed1374 interfacing to the toshiba mips tx3912 processor x26a-g-004-01 issue date: 98/11/09 this page left blank
epson research and development page 3 vancouver design center interfacing to the toshiba mips tx3912 processor sed1374 issue date: 98/11/09 x26a-g-004-01 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.1 general description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 2 direct connection to the toshiba tx3912 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 general description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 2.2 memory mapping and aliasing . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 2.3 sed1374 configuration and pin mapping . . . . . . . . . . . . . . . . . . . . . . . .9 3 system design using the ite it8368e pc card buffer . . . . . . . . . . . . . . . . . . . . 10 3.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.2 it8368e configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.3 memory mapping and aliasing . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.4 sed1374 configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 5 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.1 epson lcd controllers (sed1374) . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.2 toshiba mips tx3912 processor . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.3 ite it8368e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
page 4 epson research and development vancouver design center sed1374 interfacing to the toshiba mips tx3912 processor x26a-g-004-01 issue date: 98/11/09 this page left blank
epson research and development page 5 vancouver design center interfacing to the toshiba mips tx3912 processor sed1374 issue date: 98/11/09 x26a-g-004-01 list of tables table 2-1: sed1374 configuration for direct connection . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 table 2-2: sed1374 generic #2 interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 table 3-1: tx3912 to unbuffered pc card slots system address mapping . . . . . . . . . . . . . . . . . . 12 table 3-2: tx3912 to pc card slots address remapping using the it8368e . . . . . . . . . . . . . . . . . 12 table 3-3: sed1374 configuration using the it8368e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 table 3-4: sed1374 generic #1 interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 list of figures figure 2-1: sed1374 to tx3912 direct connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 figure 3-1: sed1374 to tx3912 connection using an it8368e . . . . . . . . . . . . . . . . . . . . . . . . 10
page 6 epson research and development vancouver design center sed1374 interfacing to the toshiba mips tx3912 processor x26a-g-004-01 issue date: 98/11/09 this page left blank
epson research and development page 7 vancouver design center interfacing to the toshiba mips tx3912 processor sed1374 issue date: 98/11/09 x26a-g-004-01 1 introduction this application note describes the hardware and software environment required to provide an interface between the sed1374 embedded memory color graphics lcd controller and the toshiba mips tx3912 processor. for further information on the sed1374, refer to the sed1374 hardware functional specification , document number x26a-a-001-xx. for further information on the tx3912, contact toshiba or refer to the toshiba website under semiconductors at http://www.toshiba.com/taec/nonflash/indexproducts.html. for further information on the ite it8368e, refer to the it8368e pc card / gpio buffer chip specification . 1.1 general description the toshiba mips tx3912 processor supports up to two pc card (pcmcia) slots. it is through this host bus interface that the sed1374 connects to the tx3912 processor. the sed1374 can be successfully interfaced using one of two configurations: ? direct connection to tx3912 (see section 2, direct connection to the toshiba tx3912 on page 8). ? system design using one ite it8368e pc card/gpio buffer chip (see section 3, system design using the ite it8368e pc card buffer on page 10).
page 8 epson research and development vancouver design center sed1374 interfacing to the toshiba mips tx3912 processor x26a-g-004-01 issue date: 98/11/09 2 direct connection to the toshiba tx3912 2.1 general description in this example implementation, the sed1374 occupies the tx3912 pc card slot #1. the sed1374 is easily interfaced to the tx3912 with minimal additional logic. the address bus of the tx3912 pc card interface is multiplexed and can be demultiplexed using an advanced cmos latch (e.g., 74act373). the direct connection approach makes use of the sed1374 in its generic interface #2 configuration. the following diagram demonstrates a typical implementation of the interface. figure 2-1: sed1374 to tx3912 direct connection the generic #2 host interface control signals of the sed1374 are asynchronous with respect to the sed1374 bus clock. this gives the system designer full flexibility to choose the appropriate source (or sources) for clki and bclk. the choice of whether both clocks should be the same, and whether to use dclkout (divided) as clock source, should be based on the desired: ? pixel and frame rates. ? power budget. ? part count. ? maximum sed1374 clock frequencies. the sed1374 also has internal clock dividers providing additional flexibility. we# rd# db[7:0] wait# bclk sed1374 reset# ab[15:13] d[31:24] card1wait* a[12:0] tx3912 pull-up oscillator bhe# card1csl* card1csh* latch ale system reset we* rd* bs# rd/wr# io v dd io v dd endian db[15:8] d[23:16] ab[12:0] v dd dclkout ...or... cs# clki see text clock divider io v dd , core v dd +3.3v
epson research and development page 9 vancouver design center interfacing to the toshiba mips tx3912 processor sed1374 issue date: 98/11/09 x26a-g-004-01 2.2 memory mapping and aliasing the sed1374 requires an addressing space of 64k bytes. the on-chip display memory occupies the range 0 through 9fffh. the registers occupy the range ffe0h through ffffh. the tx3912 demultiplexed address lines a16 and above are ignored, thus the sed1374 is aliased 1024 times at 64k byte intervals over the 64m byte pc card slot #1 memory space. in this example implementation, the tx3912 control signal cardreg* is ignored, the sed1374 also takes up the entire pc card slot 1 configuration space. note if aliasing is undesirable, additional decoding circuitry must be added. 2.3 sed1374 configuration and pin mapping the sed1374 is configured at power up by latching the state of the cnf[4:0] pins. pin bs# also plays a role in host bus interface configuration. for details on configuration, refer to the sed1374 hardware functional specification , document number x26a-a-001-xx. the table below shows those configuration settings relevant to the direct connection approach. when the sed1374 is configured for generic #2 interface, the host interface pins are mapped as in the table below. table 2-1: sed1374 configuration for direct connection sed1374 configuration pin value hard wired on this pin is used to configure: 1 (io v dd )0 (v ss ) bs# generic #2 generic #1 cnf3 big endian little endian cnf[2:0] 111: generic #1 or #2 = configuration for toshiba tx3912 host bus interface table 2-2: sed1374 generic #2 interface pin mapping pin name pin function we1# bhe# bs# connect to io v dd rd/wr# connect to io v dd rd# rd# we0# we#
page 10 epson research and development vancouver design center sed1374 interfacing to the toshiba mips tx3912 processor x26a-g-004-01 issue date: 98/11/09 3 system design using the ite it8368e pc card buffer if the system designer uses the ite it8368e pc card and multiple-function i/o buffer, the sed1374 can be interfaced so that it shares a pc card slot. the sed1374 is mapped to a rarely- used 16m byte portion of the pc card slot buffered by the it8368e. this makes the sed1374 virtually transparent to pc card devices that use the same slot. 3.1 hardware description the ite8368e has been specially designed to support epson lcd controllers. the ite it8368e provides eleven multi-function io pins (mfio). configuration registers may be used to allow these mfio pins to provide the control signals required to implement the sed1374 cpu interface. the tx3912 processor only provides addresses a[12:0], therefore devices requiring more address space must use an external device to latch a[25:13]. the it8368es mfio pins can be configured to provide this latched address. figure 3-1: sed1374 to tx3912 connection using an it8368e it8368e sed1374 ha[12:0] ab[12:0] hd[31:24] db[7:0] lha[23]/mfio[10] we1# we0# rd1# rd0# cs# lha[22]/mfio[9] lha[21]/mfio[8] lha[20]/mfio[7] lha[19]/mfio[6] wait# cardxwait* reset# ab[15:13] tx3912 hd[23:16] db[15:8] dclkout endian system reset lha[15:13]/ oscillator ...or... pull-up v dd bclk clki see text clock divider bs# io v dd , core v dd +3.3v mfio[2:0]
epson research and development page 11 vancouver design center interfacing to the toshiba mips tx3912 processor sed1374 issue date: 98/11/09 x26a-g-004-01 the generic #1 host interface control signals of the sed1374 are asynchronous with respect to the sed1374 bus clock. this gives the system designer full flexibility to choose the appropriate source (or sources) for clki and bclk. the choice of whether both clocks should be the same, and whether to use dclkout (divided) as clock source, should be based on pixel and frame rates, power budget, part count and maximum sed1374 respective clock frequencies. also, internal sed1374 clock dividers provide additional flexibility. 3.2 it8368e configuration the it8368e provides eleven multi-function io pins (mfio). the it8368e must have both fix attribute/io and vga modes on. when both these modes are enabled, the mfio pins provide control signals needed by the sed1374 host bus interface, and a 16m byte portion of the system pc card attribute and io space is allocated to address the sed1374. when accessing the sed1374 the associated card-side signals are disabled in order to avoid any conflicts. for mapping details, refer to section 3.3: memory mapping and aliasing. for connection details see figure 3-1: sed1374 to tx3912 connection using an it8368e, on page 10. for further infor- mation on the it8368e, refer to the it8368e pc card/gpio buffer chip specification . note when a second it8368e is used, that circuit should not be set in vga mode.
page 12 epson research and development vancouver design center sed1374 interfacing to the toshiba mips tx3912 processor x26a-g-004-01 issue date: 98/11/09 3.3 memory mapping and aliasing when the tx3912 accesses the pc card slots without the ite it8368e, its system memory is mapped as in table 3-1:, tx3912 to unbuffered pc card slots system address mapping. note bits card1ioen and card2ioen need to be set in tx3912 memory configuration register 3. table 3-1: tx3912 to unbuffered pc card slots system address mapping when the tx3912 accesses the pc card slots buffered through the ite it8368e, bits card1ioen and card2ioen are ignored and the attribute/io space of the tx3912 is divided into attribute, i/o and sed1374 access. table 3-2:, tx3912 to pc card slots address remapping using the it8368e provides all details of the attribute/io address reallocation by the it8368e. table 3-2: tx3912 to pc card slots address remapping using the it8368e tx3912 address size function (cardnioen=0) function (cardnioen=1) 0800 0000h 64m byte card 1 attribute card 1 io 0c00 0000h 64m byte card 2 attribute card 2 io 6400 0000h 64m byte card 1 memory 6400 0000h 64m byte card 2 memory it8368e uses pc card slot # tx3912 address size function 1 0800 0000h 16m byte card 1 io 0900 0000h 16m byte sed1374 (aliased 256 times at 64k byte intervals) 0a00 0000h 32m byte card 1 attribute 6400 0000h 64m byte card 1 memory 2 0c00 0000h 16m byte card 2 io 0d00 0000h 16m byte sed1374 (aliased 256 times at 64k byte intervals) 0e00 0000h 32m byte card 2 attribute 6800 0000h 64m byte card 2 memory
epson research and development page 13 vancouver design center interfacing to the toshiba mips tx3912 processor sed1374 issue date: 98/11/09 x26a-g-004-01 3.4 sed1374 configuration the sed1374 is configured at power up by latching the state of the cnf[4:0] pins. pin bs# also plays a role in host bus interface configuration. for details on configuration, refer to the sed1374 hardware functional specification , document number x26a-a-001-xx. the table below shows those configuration settings relevant to this specific interface. when the sed1374 is configured for generic #1 interface, the host interface pins are mapped as in the table below. table 3-3: sed1374 configuration using the it8368e sed1374 configuration pin value hard wired on this pin is used to configure: 1 (io v dd )0 (v ss ) bs# generic #2 generic #1 cnf3 big endian little endian cnf[2:0] 111: generic #1 or #2 = configuration for connection using ite it8368e table 3-4: sed1374 generic #1 interface pin mapping pin name pin function we1# we1# bs# connect to v ss rd/wr# rd1# rd# rd0# we0# we0#
page 14 epson research and development vancouver design center sed1374 interfacing to the toshiba mips tx3912 processor x26a-g-004-01 issue date: 98/11/09 4 software test utilities and windows? ce v2.0 display drivers are available for the sed1374. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 1357cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the sed1374 test utilities and windows ce v2.0 display drivers are available from your sales support contact or www.erd.epson.com.
epson research and development page 15 vancouver design center interfacing to the toshiba mips tx3912 processor sed1374 issue date: 98/11/09 x26a-g-004-01 5 technical support 5.1 epson lcd controllers (sed1374) 5.2 toshiba mips tx3912 processor 5.3 ite it8368e japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 http://www.toshiba.com/taec/nonflash/indexproducts.html integrated technology express, inc. sales & marketing division 2710 walsh avenue santa clara, ca 95051, usa tel: (408) 980-8168 fax: (408) 980-9232 http://www.iteusa.com
page 16 epson research and development vancouver design center sed1374 interfacing to the toshiba mips tx3912 processor x26a-g-004-01 issue date: 98/11/09 this page left blank
sed1374 embedded memory color lcd controller sed1374 power consumption document number: x26a-g-006-01 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners
page 2 epson research and development vancouver design center sed1374 power consumption x26a-g-006-01 issue date: 98/10/27 this page left blank
epson research and development page 3 vancouver design center power consumption sed1374 issue date: 98/10/27 x26a-g-006-01 1 sed1374 power consumption sed1374 power consumption is affected by many system design variables. ? input clock frequency (clki): the clki frequency and the internal clock divide register deter- mine the operating clock (clk) frequency of the sed1374. the higher clk is, the higher the frame fate, performance, and power consumption. ? cpu interface: the sed1374 current consumption depends on the busclk frequency, data width, number of toggling pins, and other factors C the higher the busclk, the higher the cpu performance and power consumption. ?v dd voltage levels (core and io): the voltage level of the core and io sections in the sed1374 affects power consumption C the higher the voltage, the higher the consumption. ? display mode: the resolution, panel type, and color depth affect power consumption. the higher the resolution/color depth and number of lcd panel signals, the higher the power consumption. note if the high performance option is turned on, the power consumption increases to that of 8 bit-per-pixel mode for all color depths. there are two power save modes in the sed1374: software and hardware power save. the power consumption of these modes is affected by various system design variables. ? cpu bus state during power save: the state of the cpu bus signals during power save has a substantial effect on power consumption. an inactive bus (e.g. busclk = low, addr = low etc.) reduces overall system power consumption. ? clki state during power save: disabling the clki during power save has substantial power savings.
page 4 epson research and development vancouver design center sed1374 power consumption x26a-g-006-01 issue date: 98/10/27 1.1 conditions table 1-1: sed1374 total power consumption below gives an example of a specific environment and its effects on power consumption. note 1. conditions for software power save: ? cpu interface active (signals toggling) ? clki active 2. conditions for hardware power save: ? cpu interface inactive (high impedance) ? clki active table 1-1: sed1374 total power consumption test condition core v dd = 3.3v, io v dd = 3.3v busclk = 8.33mhz gray shades / colors power consumption active power save mode core io total software hardware 1 input clock = 6mhz lcd panel = 320x240 4-bit single monochrome black-and-white 4 gray shades 16 gray shades 5.29mw 6.86mw 8.15mw 0.3mw 0.43mw 0.55mw 5.59mw 7.29mw 8.70mw 1.58mw 1 1.19mw 2 2 input clock = 6mhz lcd panel = 320x240 4-bit single color 2 colors 4 colors 16 colors 6.82mw 7.58mw 8.98mw 1.13mw 2.29mw 2.25mw 7.95mw 9.86mw 11.23mw 1.58mw 1 1.19mw 2 3 input clock = 25mhz lcd panel = 640x480 8-bit single monochrome black-and-white 21.38mw 0.92mw 22.30mw 3.09mw 1 2.71mw 2 4 input clock = 25mhz lcd panel = 640x480 8-bit single color 2 colors 23.66mw 2.40mw 26.07mw 3.09mw 1 2.71mw 2 5 input clock = 25mhz lcd panel = 640x480 8-bit dual monochrome black-and-white 20.93mw 0.88mw 21.81mw 3.09mw 1 2.71mw 2 6 input clock = 25mhz lcd panel = 640x480 8-bit dual color 2 colors 23.78mw 1.93mw 25.72mw 3.09mw 1 2.71mw 2 7 input clock = 25mhz lcd panel = 640x480 9-bit tft 2 colors 16.48mw 8.07mw 24.55mw 3.09mw 1 2.71mw 2
epson research and development page 5 vancouver design center power consumption sed1374 issue date: 98/10/27 x26a-g-006-01 2 summary the system design variables in section 1, sed1374 power consumption and in table 1-1: sed1374 total power consumption show that sed1374 power consumption depends on the specific implementation. active mode power consumption depends on the desired cpu perfor- mance and lcd frame-rate, whereas power save mode consumption depends on the cpu interface and input clock state. in a typical design environment, the sed1374 can be configured to be an extremely power-efficient lcd controller with high performance and flexibility.
page 6 epson research and development vancouver design center sed1374 power consumption x26a-g-006-01 issue date: 98/10/27 this page left blank
sed1374 embedded memory color lcd controller interfacing to the motorola mc68328 dragonball microprocessor document number: x26a-g-007-02 copyright ? 1998, 1999 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center sed1374 interfacing to the motorola mc68328 dragonball microprocessor x26a-g-007-02 issue date: 99/01/05 this page left blank
epson research and development page 3 vancouver design center interfacing to the motorola mc68328 dragonball microprocessor sed1374 issue date: 99/01/05 x26a-g-007-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 interfacing to the mc68328 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 the mc68328 system bus . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2 chip-select module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 sed1374 host bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.1 bus interface modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.2 generic #1 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.3 mc68k #1 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 11 4 mc68328 to sed1374 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1.1 using the mc68k #1 host bus interface . . . . . . . . . . . . . . . . . . . . . . 12 4.1.2 using the generic #1 host bus interface . . . . . . . . . . . . . . . . . . . . . . 13 4.2 sed1374 hardware configuration . . . . . . . . . . . . . . . . . . . . . . 14 4.3 mc68328 chip select configuration . . . . . . . . . . . . . . . . . . . . . 14 5 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6.1 documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6.2 document sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 7.1 epson lcd controllers (sed1374) . . . . . . . . . . . . . . . . . . . . . 17 7.2 motorola mc68328 processor . . . . . . . . . . . . . . . . . . . . . . . . 17
page 4 epson research and development vancouver design center sed1374 interfacing to the motorola mc68328 dragonball microprocessor x26a-g-007-02 issue date: 99/01/05 this page left blank
epson research and development page 5 vancouver design center interfacing to the motorola mc68328 dragonball microprocessor sed1374 issue date: 99/01/05 x26a-g-007-02 list of tables table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 table 4-1: summary of power-on/reset options . . . . . . . . . . . . . . . . . . . . . . . . . . 14 table 4-2: host bus interface selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 list of figures figure 4-1: typical implementation of mc68328 to sed1374 interface - mc68k #1 . . . . . . . . 12 figure 4-2: typical implementation of mc68328 to sed1374 interface - generic #1 . . . . . . . . 13
page 6 epson research and development vancouver design center sed1374 interfacing to the motorola mc68328 dragonball microprocessor x26a-g-007-02 issue date: 99/01/05 this page left blank
epson research and development page 7 vancouver design center interfacing to the motorola mc68328 dragonball microprocessor sed1374 issue date: 99/01/05 x26a-g-007-02 1 introduction this application note describes the hardware required to provide an interface between the sed1374 embedded memory lcd controller and the motorola mc68328 dragonball microprocessor. by implementing a dedicated display refresh memory, the sed1374 can reduce system power consumption, improve image quality, and increase system perfor- mance as compared to the dragonballs on-chip lcd controller. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson research and development website at http://www.erd.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 8 epson research and development vancouver design center sed1374 interfacing to the motorola mc68328 dragonball microprocessor x26a-g-007-02 issue date: 99/01/05 2 interfacing to the mc68328 2.1 the mc68328 system bus the mc68328 is an integrated controller for handheld products, based upon the mc68ec000 microprocessor core. it implements a 16-bit data bus and a 32-bit address bus. the bus interface consists of all the standard mc68000 bus interface signals, plus some new signals intended to simplify the task of interfacing to typical memory and peripheral devices. the mc68000 bus control signals are well documented in motorolas user manuals, and will not be described here. a brief summary of the new signals appears below: ? output enable (oe ) is asserted when a read cycle is in process; it is intended to connect to the output enable control of a typical static ram, eprom, or flash eprom device. ? upper write enable and lower write enable (uwe/lwe ) are asserted during memory write cycles for the upper and lower bytes of the 16-bit data bus; they may be directly connected to the write enable inputs of a typical memory device. the sed1374 implements the mc68000 bus interface using its mc68k #1 mode, so this mode may be used to connect the mc68328 directly to the sed1374 with no glue logic. however, several of the mc68000 bus control signals are multiplexed with io and interrupt signals on the mc68328, and in many applications it may be desirable to make these pins available for these alternate functions. this requirement may be accommodated through use of the generic #1 interface mode on the sed1374. 2.2 chip-select module the mc68328 can generate up to 16 chip select outputs, organized into four groups a through d. each chip select group has a common base address register and address mask register, to set the base address and block size of the entire group. in addition, each chip select within a group has its own address compare and address mask register, to activate the chip select for a subset of the groups address block. finally, each chip select may be individually programmed to control an 8 or 16-bit device, and each may be individually programmed to generate from 0 through 6 wait states internally, or allow the memory or peripheral device to terminate the cycle externally through use of the standard mc68000 dtack signal. groups a and b can have a minimum block size of 64k bytes, so these are typically used to control memory devices. chip select a0 is active immediately after reset, so it is typically used to control a boot eprom device. groups c and d have a minimum block size of 4k bytes, so they are well-suited to controlling peripheral devices. chip select d3 is associated with the mc68328 on-chip pcmcia control logic.
epson research and development page 9 vancouver design center interfacing to the motorola mc68328 dragonball microprocessor sed1374 issue date: 99/01/05 x26a-g-007-02 3 sed1374 host bus interface this section is a summary of the host bus interface modes available on the sed1374 and offers some detail on the generic #1 and mc68k #1 host bus interfaces that may be used to implement the interface to the mc68328. 3.1 bus interface modes the sed1374 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. six bus interface modes are supported: ?hitachi sh-4. ?hitachi sh-3 ? motorola mc68000 (using upper data strobe/lower data strobe). ? motorola mc68020/mc68030/mc683xx (using data strobe/dsackx). ? generic #1 (chip select, plus individual read enable/write enable for each byte). ? generic #2 (external chip select, shared read/write enable for high byte, individual read/write enable for low byte). the sed1374 latches cnf[2:0] and bs# to allow selection of the host bus interface on the rising edge of reset#. after releasing reset, the bus interface signals assume their selected configuration. the following table shows the functions of each host bus interface signal. table 3-1: host bus interface pin mapping sed1374 pin names sh-3 sh-4 mc68k #1 mc68k #2 generic #1 generic #2 ab[15:1] a[15:1] a[15:1] a[15:1] a[15:1] a[15:1] a[15:1] ab0a0 a0lds#a0 a0 a0 db[15:0] d[15:0] d[15:0] d[15:0] d[31:16] d[15:0] d[15:0] we1# we1# we1# uds# ds# we1# bhe# cs# csn# csn# external decode external decode external decode external decode bclk ckio ckio clk clk bclk bclk bs# bs# bs# as# as# connect to v ss connect to io v dd rd/wr# rd/wr# rd/wr# r/w# r/w# rd1# connect to io v dd rd# rd# rd# connect to io v dd siz1 rd0# rd# we0# we0# we0# connect to io v dd siz0 we0# we# wait# wait# rdy# dtack# dsack1# wait# wait# reset# reset# reset# reset# reset# reset# reset#
page 10 epson research and development vancouver design center sed1374 interfacing to the motorola mc68328 dragonball microprocessor x26a-g-007-02 issue date: 99/01/05 two other configuration options (cnf[4:3]) are also made at time of hardware reset: ? endian mode setting (big endian or little endian). ? polarity of the lcdpwr signal. the capability to select the endian mode independent of the host bus interface offers more flexibility in configuring the sed1374 with other cpus. for details on configuration, refer to the sed1374 hardware functional specification , document number x26a-a-001-xx. 3.2 generic #1 interface mode generic #1 interface mode is the most general and least processor-specific interface mode on the sed1374. the generic # 1 interface mode was chosen for this interface due to the simplicity of its timing. the interface requires the following signals: ? busclk is a clock input which is required by the sed1374 host interface. it is separate from the input clock (clki) and is typically driven by the host cpu system clock. ? the address inputs ab0 through ab15, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset. ? chip select (cs#) is driven by decoding the high-order address lines to select the proper io or memory address space. ? we0# and we1# are write enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is writing data to the sed1374. these signals must be generated by external hardware based on the control outputs from the host cpu. ? rd# and rd/wr# are read enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is reading data from the sed1374. these signals must be generated by external hardware based on the control outputs from the host cpu. ? wait# is a signal output from the sed1374 that indicates the host cpu must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the sed1374 may occur asynchronously to the display update, it is possible that contention may occur in accessing the sed1374 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high. ? the bus status (bs#) signal is not used in the bus interface for generic #1 mode. however, bs# is used to configure the sed1374 for generic #1 mode and should be tied low (connected to gnd).
epson research and development page 11 vancouver design center interfacing to the motorola mc68328 dragonball microprocessor sed1374 issue date: 99/01/05 x26a-g-007-02 3.3 mc68k #1 interface mode the mc68k #1 interface mode can be used to interface to the mc68328 microprocessor if the previously mentioned, multiplexed, bus signals will not be used for other purposes. the interface requires the following signals: ? busclk is a clock input which synchronizes transfers between the host cpu and the sed1374. it is separate from the input clock (clki) and is typically driven by the host cpu system clock. ? the address inputs ab1 through ab15, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset. ? chip select (cs#) is driven by decoding the high-order address lines to select the proper io or memory address space. ? a0 and we1# are the enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is reading or writing data to the sed1374. these must be generated by external decode hardware based upon the control outputs from the host cpu. ? rd/wr# is the read/write signal that is driven low when the cpu writes to the sed1374 and is driven high when the cpu is doing a read from the sed1374. this signal must be generated by external decode hardware based upon the control output from the host cpu. ? wait# is a signal which is output from the sed1374 to the host cpu that indicates when data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the sed1374 may occur asynchronously to the display update, it is possible that contention may occur in accessing the sed1374 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. ? the bus status (bs#) signal indicates that the address on the address bus is valid. this signal must be generated by external decode hardware based upon the control outputs from the host cpu. ? the we0# signal is not used in the bus interface for mc68k #1 and must be tied high (tied to io v dd ).
page 12 epson research and development vancouver design center sed1374 interfacing to the motorola mc68328 dragonball microprocessor x26a-g-007-02 issue date: 99/01/05 4 mc68328 to sed1374 interface 4.1 hardware description the interface between the mc68328 and the sed1374 can be implemented using either the mc68k #1 or generic #1 host bus interface of the sed1374. 4.1.1 using the mc68k #1 host bus interface the mc68328 multiplexes dual functions on some of its bus control pins (specifically uds, lds, and dtack). in implementations where all of these pins are available for use as bus control pins, then the sed1374 interface is a straightforward implementation of the mc68k #1 host bus interface. for further information on this host bus interface, refer to the sed1374 hardware functional specification , document number x26a-a-001-xx. the following diagram shows a typical implementation of the mc68328 to sed1374 using the mc68k #1 host bus interface. figure 4-1: typical implementation of mc68328 to sed1374 interface - mc68k #1 mc68328 sed1374 a[15:0] d[15:0] dtack uds lds r/w clk0 reset ab[15:1] db[15:0] cs# wait# we1# ab0 rd/wr# rd# busclk reset# vcc 470 csb3 as bs# vcc
epson research and development page 13 vancouver design center interfacing to the motorola mc68328 dragonball microprocessor sed1374 issue date: 99/01/05 x26a-g-007-02 4.1.2 using the generic #1 host bus interface if uds and/or lds are required for their alternate io functions, then the mc68328 to sed1374 interface may be implemented using the sed1374 generic #1 host bus interface. note that in either case, the dtack signal must be made available for the sed1374, since it inserts a variable number of wait states depending upon cpu/lcd synchronization and the lcd panel display mode. wait# must be inverted (using an inverter enabled by cs#) to make it an active high signal and thus compatible with the mc68328 architecture. a single resistor is used to speed up the rise time of the wait# (dtack ) signal when terminating the bus cycle. the following diagram shows a typical implementation of the mc68328 to sed1374 using the generic #1 host bus interface. figure 4-2: typical implementation of mc68328 to sed1374 interface - generic #1 mc68328 sed1374 a[15:0] d[15:0] dtack uwe lwe oe clk0 reset ab[15:0] db[15:0] cs# wait# we1# we0# rd/wr# rd# busclk reset# vcc 470 csb3
page 14 epson research and development vancouver design center sed1374 interfacing to the motorola mc68328 dragonball microprocessor x26a-g-007-02 issue date: 99/01/05 4.2 sed1374 hardware configuration the sed1374 uses cnf4 through cnf0 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. refer to the sed1374 hardware functional specification , document number x26a-a-001-xx for details. the tables below show those configuration settings important to the mc68k #1 and generic #1 host bus interfaces. 4.3 mc68328 chip select configuration the sed1374 requires a 64k byte address space for the display buffer and its internal registers. to accommodate this block size, it is preferable (but not required) to use one of the chip selects from groups a or b. virtually any chip select other than csa0 or csd3 would be suitable for the sed1374 interface. in the example interface, chip select csb3 is used to control the sed1374. a 64k byte address space is used with the sed1374 control registers mapped into the top 32 bytes of the 64k byte block and the 40k bytes of display buffer mapped to the starting address of the block. the chip select should have its ro (read only) bit set to 0, and the wait field (wait states) should be set to 111b to allow the sed1374 to terminate bus cycles externally. table 4-1: summary of power-on/reset options sed1374 pin name value on this pin at the rising edge of reset# is used to configure: (1/0) 01 cnf0 see host bus selection table below see host bus selection table below cnf1 cnf2 cnf3 little endian big endian cnf4 active low lcdpwr signal active high lcdpwr signal = configuration for mc68328 support table 4-2: host bus interface selection cnf2 cnf1 cnf0 bs# host bus interface 0 0 0 x sh-4 interface 0 0 1 x sh-3 interface 0 1 0 x reserved 0 1 1 x mc68k #1, 16-bit 1 0 0 x reserved 1 0 1 x mc68k #2, 16-bit 1 1 0 0 reserved 1 1 0 1 reserved 1 1 1 0 generic #1, 16-bit 1 1 1 1 generic #2, 16-bit = configuration for mc68328 using generic #1 host bus interface = configuration for mc68328 using mc68k #1 host bus interface
epson research and development page 15 vancouver design center interfacing to the motorola mc68328 dragonball microprocessor sed1374 issue date: 99/01/05 x26a-g-007-02 5 software test utilities and windows? ce v2.0 display drivers are available for the sed1374. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 1374cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the sed1374 test utilities and windows ce v2.0 display drivers are available from your sales support contact or on the internet at http://www.erd.epson.com.
page 16 epson research and development vancouver design center sed1374 interfacing to the motorola mc68328 dragonball microprocessor x26a-g-007-02 issue date: 99/01/05 6 references 6.1 documents ? motorola inc., mc68328 dragonball? integrated microprocessor users manual , motorola publication no. mc68328um/ad; available on the internet at http://www.mot.com/sps/wireless/products/mc68328.html. ? epson research and development, inc., sed1374 hardware functional specification ; document number x26a-a-001-xx. ? epson research and development, inc., sdu1374b0c rev. 1.0 isa bus evaluation board user manual; document number x26a-g-005-xx. ? epson research and development, inc., sed1374 programming notes and examples ; document number x26a-g-002-xx. 6.2 document sources ? motorola inc.: motorola literature distribution center, (800) 441-2447. ? motorola website: http://www.mot.com. ? epson research and development website: http://www.erd.epson.com.
epson research and development page 17 vancouver design center interfacing to the motorola mc68328 dragonball microprocessor sed1374 issue date: 99/01/05 x26a-g-007-02 7 technical support 7.1 epson lcd controllers (sed1374) 7.2 motorola mc68328 processor ? motorola design line, (800) 521-6274. ? local motorola sales office or authorized distributor. japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com
page 18 epson research and development vancouver design center sed1374 interfacing to the motorola mc68328 dragonball microprocessor x26a-g-007-02 issue date: 99/01/05 this page left blank
sed1374 embedded memory color lcd controller interfacing to the nec vr4102? microprocessor document number: x26a-g-008-04 copyright ? 1998, 1999 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center sed1374 interfacing to the nec vr4102? microprocessor x26a-g-008-04 issue date: 99/01/05 this page left blank
epson research and development page 3 vancouver design center interfacing to the nec vr4102? microprocessor sed1374 issue date: 99/01/05 x26a-g-008-04 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 interfacing to the nec vr4102 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 the nec vr4102 system bus . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.2 lcd memory access cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3 sed1374 host bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1 bus interface modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.2 generic #2 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 11 4 vr4102 to sed1374 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.2 sed1374 hardware configuration . . . . . . . . . . . . . . . . . . . . . . 14 4.3 nec vr4102 configuration . . . . . . . . . . . . . . . . . . . . . . . . . 15 5 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.1 documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.2 document sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 7.1 epson lcd controllers (sed1374) . . . . . . . . . . . . . . . . . . . . . . 18 7.2 nec electronics inc. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
page 4 epson research and development vancouver design center sed1374 interfacing to the nec vr4102? microprocessor x26a-g-008-04 issue date: 99/01/05 this page left blank
epson research and development page 5 vancouver design center interfacing to the nec vr4102? microprocessor sed1374 issue date: 99/01/05 x26a-g-008-04 list of tables table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 table 4-1: summary of power-on/reset options . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 table 4-2: host bus selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 list of figures figure 2-1: nec vr4102 read/write cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 4-1: typical implementation of vr4102 to sed1374 interface . . . . . . . . . . . . . . . . 13
page 6 epson research and development vancouver design center sed1374 interfacing to the nec vr4102? microprocessor x26a-g-008-04 issue date: 99/01/05 this page left blank
epson research and development page 7 vancouver design center interfacing to the nec vr4102? microprocessor sed1374 issue date: 99/01/05 x26a-g-008-04 1 introduction this application note describes the hardware required to provide an interface between the sed1374 embedded memory lcd controller and the nec v r 4102 microprocessor ( u pd30102). the nec v r 4102 microprocessor is specifically designed to support an external lcd controller and the pairing of these two devices results in an embedded system offering impressive display capability with very low power consumption. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson research and development website at http://www.erd.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 8 epson research and development vancouver design center sed1374 interfacing to the nec vr4102? microprocessor x26a-g-008-04 issue date: 99/01/05 2 interfacing to the nec vr4102 2.1 the nec vr4102 system bus the vr-series family of microprocessors features a high-speed synchronous system bus typical of modern microprocessors. designed with external lcd controller support and windows ce-based embedded consumer applications in mind, the vr4102 offers a highly integrated solution for portable systems. this section is an overview of the operation of the cpu bus to establish interface requirements. 2.1.1 overview the nec vr4102 is designed around the risc architecture developed by mips. this microprocessor is designed around the 66mhz vr4100 cpu core which supports 64-bit processing. the cpu communicates with the bus control unit (bcu) with its internal sysad bus. the bcu in turn communicates with external devices with its add and dat buses that can be dynamically sized to 16 or 32-bit operation. the nec vr4102 has direct support for an external lcd controller. specific control signals are assigned for an external lcd controller that provide an easy interface to the cpu. a 16m byte block of memory is assigned for the lcd controller with its own chip select and ready signals available. word or byte accesses are controlled by the system high byte signal, shb#.
epson research and development page 9 vancouver design center interfacing to the nec vr4102? microprocessor sed1374 issue date: 99/01/05 x26a-g-008-04 2.1.2 lcd memory access cycles figure 2-1: nec vr4102 read/write cycles, on page 9 shows the read and write cycles to the lcd controller interface. once an address in the lcd block of memory is placed on the external address bus, add[25:0], the lcd chip select, lcdcs#, is driven low. the read or write enable signals, rd# and wr#, are driven low for the appropriate cycle and lcdrdy is driven low to insert wait states into the cycle. the high byte enable is driven low for 16-bit transfers and high for 8-bit transfers. figure 2-1: nec vr4102 read/write cycles tclk add[25:0] lcdcs# wr#,rd# lcdrdy valid valid valid hi-z hi-z d[15:0] d[15:0] (write) (read) shb#
page 10 epson research and development vancouver design center sed1374 interfacing to the nec vr4102? microprocessor x26a-g-008-04 issue date: 99/01/05 3 sed1374 host bus interface this section is a summary of the host bus interface modes available on the sed1374 and offers some detail on the generic #2 host bus interface used to implement the interface to the vr4102. 3.1 bus interface modes the sed1374 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. six bus interface modes are supported: ? hitachi sh-4. ? hitachi sh-3 ? motorola mc68000 (using upper data strobe/lower data strobe). ? motorola mc68020/mc68030/mc683xx (using data strobe/dsackx). ? generic #1 (chip select, plus individual read enable/write enable for each byte). ? generic #2 (external chip select, shared read/write enable for high byte, individual read/write enable for low byte). the sed1374 latches cnf[2:0] and bs# to allow selection of the host bus interface on the rising edge of reset#. after releasing reset, the bus interface signals assume their selected configuration. the following table shows the functions of each host bus interface signal. table 3-1: host bus interface pin mapping sed1374 pin names sh-3 sh-4 mc68k #1 mc68k #2 generic #1 generic #2 ab[15:1] a[15:1] a[15:1] a[15:1] a[15:1] a[15:1] a[15:1] ab0 a0 a0 lds# a0 a0 a0 db[15:0] d[15:0] d[15:0] d[15:0] d[31:16] d[15:0] d[15:0] we1# we1# we1# uds# ds# we1# bhe# cs# csn# csn# external decode external decode external decode external decode bclk ckio ckio clk clk bclk bclk bs# bs# bs# as# as# connect to v ss connect to io v dd rd/wr# rd/wr# rd/wr# r/w# r/w# rd1# connect to io v dd rd# rd# rd# connect to io v dd siz1 rd0# rd# we0# we0# we0# connect to io v dd siz0 we0# we# wait# wait# rdy# dtack# dsack1# wait# wait# reset# reset# reset# reset# reset# reset# reset#
epson research and development page 11 vancouver design center interfacing to the nec vr4102? microprocessor sed1374 issue date: 99/01/05 x26a-g-008-04 two other configuration options (cnf[4:3]) are also made at time of hardware reset: ? endian mode setting (big endian or little endian). ? polarity of the lcdpwr signal. the capability to select the endian mode independent of the host bus interface offers more flexibility in configuring the sed1374 with other cpus. for details on configuration, refer to the sed1374 hardware functional specification , document number x26a-a-001-xx. 3.2 generic #2 interface mode generic #2 interface mode is a general and non-processor-specific interface mode on the sed1374. the generic # 2 interface mode was chosen for this interface due to the simplicity of its timing and compatibility with the vr4102 control signals. the interface requires the following signals: ? busclk is a clock input which synchronizes transfers between the host cpu and the sed1374. it is separate from the input clock (clki) and is typically driven by the host cpu system clock. ? the address inputs ab0 through ab15, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset. ? chip select (cs#) is driven by decoding the high-order address lines to select the proper io or memory address space. ? we1# is the high byte enable for both read and write cycles and we0# is the enable signal for a write access. these must be generated by external decode hardware based upon the control outputs from the host cpu. ? rd# is the read enable for the sed1374, to be driven low when the host cpu is reading data from the sed1374. rd# must be generated by external decode hardware based upon the control outputs from the host cpu. ? wait# is a signal which is output from the sed1374 to the host cpu that indicates when data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the sed1374 may occur asynchronously to the display update, it is possible that contention may occur in accessing the 1374 internal registers and/or
page 12 epson research and development vancouver design center sed1374 interfacing to the nec vr4102? microprocessor x26a-g-008-04 issue date: 99/01/05 refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high. ? the bus status (bs#) and read/write (rd/wr#) signals are not used in the bus inter- face for generic #2 mode. however, bs# is used to configure the sed1374 for generic #2 mode and should be tied high (connected to io v dd ). rd/wr# should also be tied high.
epson research and development page 13 vancouver design center interfacing to the nec vr4102? microprocessor sed1374 issue date: 99/01/05 x26a-g-008-04 4 vr4102 to sed1374 interface 4.1 hardware description the nec v r 4102 microprocessor is specifically designed to support an external lcd controller by providing the internal address decoding and control signals necessary. by using the generic # 2 interface, only one inverter is required to change the polarity of the system reset signal to active low. a pull-up resistor is attached to wait# to speed up its rise time when terminating a cycle. the following diagram shows a typical implementation of the vr4102 to sed1374 interface. figure 4-1: typical implementation of vr4102 to sed1374 interface we1# we0# db[15:0] wait# rd# busclk sed1374 cs# reset# ab[15:0] shb# wr# data[15:0] lcdcs# rd# busclk lcdrdy add[15:0] nec v r 4102 pull-up bs# rd/wr# vcc vcc rstout
page 14 epson research and development vancouver design center sed1374 interfacing to the nec vr4102? microprocessor x26a-g-008-04 issue date: 99/01/05 4.2 sed1374 hardware configuration the sed1374 uses cnf4 through cnf0 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. refer to the sed1374 hardware functional specification , document number x26a-a-001-xx for details. the tables below show those configuration settings important to the generic #2 host bus interface. table 4-1: summary of power-on/reset options signal value on this pin at the rising edge of reset# is used to configure: (0/1) 01 cnf0 see host bus selection table below see host bus selection table below cnf1 cnf2 cnf3 little endian big endian cnf4 active low lcdpwr signal active high lcdpwr signal = configuration for nec vr4102 support table 4-2: host bus selection cnf2 cnf1 cnf0 bs# host bus interface 0 0 0 x sh-4 interface 0 0 1 x sh-3 interface 0 1 0 x reserved 0 1 1 x mc68k #1, 16-bit 1 0 0 x reserved 1 0 1 x mc68k #2, 16-bit 1 1 0 0 reserved 1 1 0 1 reserved 1 1 1 0 generic #1, 16-bit 1 1 1 1 generic #2, 16-bit = configuration for nec vr4102 support
epson research and development page 15 vancouver design center interfacing to the nec vr4102? microprocessor sed1374 issue date: 99/01/05 x26a-g-008-04 4.3 nec vr4102 configuration the nec v r 4102 provides the internal address decoding necessary to map to an external lcd controller. physical address 0a000000h to 0affffffh (16m bytes) is reserved for an external lcd controller. the sed1374 supports up to 40k bytes of display buffer memory and 32 bytes for internal registers. therefore, the sed1374 will be shadowed over the entire 16m byte memory range at 64k byte segments. the starting address of the display buffer is 0a000000h and register 0 of the sed1374 (reg[00h]) resides at 0a00ffe0h. the nec v r 4102 has a 16-bit internal register named bcucntreg2 located at address 0b000002h. it must be set to the value of 0001h to indicate that lcd controller accesses use a non-inverting data bus. the 16-bit internal register named bcucntreg1, located at address 0b000000h, must have bit d[13] (isa/lcd bit) set to 0 to reserve the 16m bytes space, 0a000000h to 0affffffh, for lcd use and not as isa bus memory space.
page 16 epson research and development vancouver design center sed1374 interfacing to the nec vr4102? microprocessor x26a-g-008-04 issue date: 99/01/05 5 software test utilities and windows? ce v2.0 display drivers are available for the sed1374. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 1374cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the sed1374 test utilities and windows ce v2.0 display drivers are available from your sales support contact or on the internet at http://www.erd.epson.com.
epson research and development page 17 vancouver design center interfacing to the nec vr4102? microprocessor sed1374 issue date: 99/01/05 x26a-g-008-04 6 references 6.1 documents ?nec v r 4102 64/32-bit microprocessor preliminary users manual. ? epson research and development, inc., sed1374 embedded memory color lcd controller hardware functional specification ; document number x26a-a-001-xx. ? epson research and development, inc., sdu1374b0c rev. 1.0 isa bus evaluation board user manual; document number x26a-g-005-xx. ? epson research and development, inc., sed1374 programming notes and examples ; document number x26a-g-002-xx. 6.2 document sources ? nec web page : http://www.nec.com. ? epson research and development web page: http://www.erd.epson.com
page 18 epson research and development vancouver design center sed1374 interfacing to the nec vr4102? microprocessor x26a-g-008-04 issue date: 99/01/05 7 technical support 7.1 epson lcd controllers (sed1374) 7.2 nec electronics inc. nec electronics inc. (u.s.a.) santa clara california tel: (800) 366-9782 fax: (800) 729-9288 http://www.nec.com japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com
sed1374 embedded memory color lcd controller interfacing to the pc card bus document number: x26a-g-009-02 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center sed1374 interfacing to the pc card bus x26a-g-009-02 issue date: 98/12/10 this page left blank
epson research and development page 3 vancouver design center interfacing to the pc card bus sed1374 issue date: 98/12/10 x26a-g-009-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 interfacing to the pc card bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 the pc card system bus . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.1 pc card overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.2 memory access cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 sed1374 bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1 bus interface modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.2 generic #1 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 11 4 pc card to sed1374 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1 hardware connections . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2 sed1374 hardware configuration . . . . . . . . . . . . . . . . . . . . . . 13 4.3 pal equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4.4 register/memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . 14 5 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6.1 documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6.2 document sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 7.1 epson lcd controllers (sed1374) . . . . . . . . . . . . . . . . . . . . . 17 7.2 pc card standard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
page 4 epson research and development vancouver design center sed1374 interfacing to the pc card bus x26a-g-009-02 issue date: 98/12/10 this page left blank
epson research and development page 5 vancouver design center interfacing to the pc card bus sed1374 issue date: 98/12/10 x26a-g-009-02 list of tables table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 table 4-1: summary of power-on/reset options . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 table 4-2: host bus interface selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 list of figures figure 2-1: pc card read cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 2-2: pc card write cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 4-1: typical implementation of pc card to sed1374 interface . . . . . . . . . . . . . . . . 12
page 6 epson research and development vancouver design center sed1374 interfacing to the pc card bus x26a-g-009-02 issue date: 98/12/10 this page left blank
epson research and development page 7 vancouver design center interfacing to the pc card bus sed1374 issue date: 98/12/10 x26a-g-009-02 1 introduction this application note describes the hardware and software environment required to provide an interface between the sed1374 embedded memory lcd controller and the pc card (pcmcia) bus. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson research and development website at http://www.erd.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 8 epson research and development vancouver design center sed1374 interfacing to the pc card bus x26a-g-009-02 issue date: 98/12/10 2 interfacing to the pc card bus 2.1 the pc card system bus pc card technology has gained wide acceptance in the mobile computing field as well as in other markets due to its portability and ruggedness. this section is an overview of the operation of the 16-bit pc card interface conforming to the pcmcia 2.0/jeida 4.1 standard (or later). 2.1.1 pc card overview the 16-bit pc card provides a 26-bit address bus and additional control lines which allow access to three 64m byte address ranges. these ranges are used for common memory space, io space, and attribute memory space. common memory may be accessed by a host system for memory read and write operations. attribute memory is used for defining card specific information such as configuration registers, card capabilities, and card use. io space maintains software and hardware compatibility with hosts such as the intel x86 architecture, which address peripherals independently from memory space. bit notation follows the convention used by most micro-processors, the high bit is the most significant. therefore, signals a25 and d15 are the most significant bits for the address and data bus respectively. support is provided for on-chip dma controllers. to find further information on these topics, refer to section 6, references on page 16. pc card bus signals are asynchronous to the host cpu bus signals. bus cycles are started with the assertion of either the ce1# and/or the ce2# card enable signals. the cycle ends once these signals are de-asserted. bus cycles can be lengthened using the wait# signal. note the pcmcia 2.0/jeida 4.1 (and later) pc card standard support the two signals wait# and reset which are not supported in earlier versions of the standard. the wait# signal allows for asynchronous data transfers for memory, attribute, and io ac- cess cycles. the reset signal allows resetting of the card configuration by the reset line of the host cpu. 2.1.2 memory access cycles a data transfer is initiated when the memory address is placed on the pc card bus and one, or both, of the card enable signals (ce1# and ce2#) are driven low. reg# must be kept inactive. if only ce1# is driven low, 8-bit data transfers are enabled and a0 specifies whether the even or odd data byte appears on data bus lines d[7:0]. if both ce1# and ce2# are driven low, a 16-bit word transfer takes place. if only ce2# is driven low, an odd byte transfer occurs on data lines d[15:8].
epson research and development page 9 vancouver design center interfacing to the pc card bus sed1374 issue date: 98/12/10 x26a-g-009-02 during a read cycle, oe# (output enable) is driven low. a write cycle is specified by driving oe# high and driving the write enable signal (we#) low. the cycle can be lengthened by driving wait# low for the time needed to complete the cycle. figure 2-1: and figure 2-2: illustrate typical memory access cycles on the pc card bus. figure 2-1: pc card read cycle figure 2-2: pc card write cycle a[25:0] ce1# oe# wait# address valid data valid hi-z hi-z d[15:0] reg# ce2# transfer start transfer complete a[25:0] ce1# oe# wait# address valid data valid hi-z hi-z d[15:0] reg# ce2# transfer start transfer complete we#
page 10 epson research and development vancouver design center sed1374 interfacing to the pc card bus x26a-g-009-02 issue date: 98/12/10 3 sed1374 bus interface this section is a summary of the host bus interface modes available on the sed1374 and offers some detail on the generic #1 host bus interface used to implement the interface to the pc card bus. 3.1 bus interface modes the sed1374 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. six bus interface modes are supported: ? hitachi sh-4. ? hitachi sh-3 ? motorola mc68000 (using upper data strobe/lower data strobe). ? motorola mc68020/mc68030/mc683xx (using data strobe/dsackx). ? generic #1 (chip select, plus individual read enable/write enable for each byte). ? generic #2 (external chip select, shared read/write enable for high byte, individual read/write enable for low byte). the sed1374 latches cnf[2:0] and bs# to allow selection of the host bus interface on the rising edge of reset#. after releasing reset, the bus interface signals assume their selected configuration. the following table shows the functions of each host bus interface signal. table 3-1: host bus interface pin mapping sed1374 pin names sh-3 sh-4 mc68k #1 mc68k #2 generic #1 generic #2 ab[15:1] a[15:1] a[15:1] a[15:1] a[15:1] a[15:1] a[15:1] ab0 a0 a0 lds# a0 a0 a0 db[15:0] d[15:0] d[15:0] d[15:0] d[31:16] d[15:0] d[15:0] we1# we1# we1# uds# ds# we1# bhe# cs# csn# csn# external decode external decode external decode external decode bclk ckio ckio clk clk bclk bclk bs# bs# bs# as# as# connect to v ss connect to io v dd rd/wr# rd/wr# rd/wr# r/w# r/w# rd1# connect to io v dd rd# rd# rd# connect to io v dd siz1 rd0# rd# we0# we0# we0# connect to io v dd siz0 we0# we# wait# wait# rdy# dtack# dsack1# wait# wait# reset# reset# reset# reset# reset# reset# reset#
epson research and development page 11 vancouver design center interfacing to the pc card bus sed1374 issue date: 98/12/10 x26a-g-009-02 two other configuration options (cnf[4:3]) are also made at time of hardware reset: ? endian mode setting (big endian or little endian). ? polarity of the lcdpwr signal. the capability to select the endian mode independent of the host bus interface offers more flexibility in configuring the sed1374 with other cpus. for details on configuration, refer to the sed1374 hardware functional specification , document number x26a-a-001-xx. 3.2 generic #1 interface mode generic #1 interface mode is the most general and least processor-specific interface mode on the sed1374. the generic # 1 interface mode was chosen for this interface due to the simplicity of its timing. the interface requires the following signals: ? busclk is a clock input which is required by the sed1374 host interface. it is separate from the input clock (clki) and is typically driven by the host cpu system clock. ? the address inputs ab0 through ab15, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset. ? chip select (cs#) is driven by decoding the high-order address lines to select the proper io or memory address space. ? we0# and we1# are write enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is writing data to the sed1374. these signals must be generated by external hardware based on the control outputs from the host cpu. ? rd# and rd/wr# are read enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is reading data from the sed1374. these signals must be generated by external hardware based on the control outputs from the host cpu. ? wait# is a signal output from the sed1374 that indicates the host cpu must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the sed1374 may occur asynchronously to the display update, it is possible that contention may occur in accessing the sed1374 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high. ? the bus status (bs#) signal is not used in the bus interface for generic #1 mode. however, bs# is used to configure the sed1374 for generic #1 mode and should be tied low (connected to gnd).
page 12 epson research and development vancouver design center sed1374 interfacing to the pc card bus x26a-g-009-02 issue date: 98/12/10 4 pc card to sed1374 interface 4.1 hardware connections the sed1374 is interfaced to the pc card interface with a minimal amount of glue logic. a pal is used to decode the write and read signals of the pc card bus to generate rd#, rd/wr#, we0#, we1#, and cs# for the sed1374. the pal also inverts the reset signal of the pc card since it is active high and the sed1374 uses an active low reset. for pal equations for this implementation refer to section 4.3, pal equations on page 14. in this implementation, the address inputs (ab[15:0]) and data bus (db[15:0] connect directly to the cpu address (a[15:0]) and data bus (d[15:0]). the pc card interface does not provide a bus clock, so one must be supplied for the sed1374. since the bus clock frequency is not critical, nor does it have to be synchronous to the bus signals, it may be the same as clki. bs# (bus start) is not used by generic #1 mode but is used to configure the sed1374 for generic #1 and should be tied low (connected to gnd). the following diagram shows a typical implementation of the pc card to sed1374 interface. figure 4-1: typical implementation of pc card to sed1374 interface rd/wr# rd# db[15:0] wait# busclk sed1374 reset# ab[15:0] oe# d[15:0] wait# a[15:0] pc card socket 15k pull-up pal16l8-15 clki oscillator we1# we0# cs# we# ce1# ce2# reg# reset
epson research and development page 13 vancouver design center interfacing to the pc card bus sed1374 issue date: 98/12/10 x26a-g-009-02 4.2 sed1374 hardware configuration the sed1374 uses cnf4 through cnf0 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. refer to the sed1374 hardware functional specification , document number x26a-a-001-xx for details. the tables below show only those configuration settings important to the pc card host bus interface. table 4-1: summary of power-on/reset options signal low high cnf0 see host bus selection table below see host bus selection table below cnf1 cnf2 cnf3 little endian big endian cnf4 active low lcdpwr signal active high lcdpwr signal = configuration for pc card host bus interface table 4-2: host bus interface selection cnf2 cnf1 cnf0 bs# host bus interface 0 0 0 x sh-4 bus interface 0 0 1 x sh-3 bus interface 0 1 0 x reserved 0 1 1 x mc68k bus interface #1, 16-bit 1 0 0 x reserved 1 0 1 x mc68k bus interface #2, 16-bit 1100reserved 1101reserved 1 1 1 0 generic #1, 16-bit 1 1 1 1 generic #2, 16-bit = configuration for pc card host bus interface
page 14 epson research and development vancouver design center sed1374 interfacing to the pc card bus x26a-g-009-02 issue date: 98/12/10 4.3 pal equations the pal equations for the implementation presented in this document are as follows. pal device 16l8; oe pin 1; we pin 2; ce1 pin 3; ce2 pin 4; reg pin 5; pcreset pin 6; reset pin 14; we0 pin 15; we1 pin 16; rd pin 17; rdwr pin 18; cs pin 19; equations !we0 = !we & !ce1 & reg; !we1 = !we & !ce2 & reg; !cs = reg & (!rd # !rdwr # !we0 # !we1); !rd = !oe & !ce1 & reg; !rdwr = !oe & !ce2 & reg; !reset = pcreset; 4.4 register/memory mapping the sed1374 is a memory mapped device. the sed1374 memory may be addressed starting at 0000h, or on consecutive 64k byte blocks, and its internal registers are located in the upper 32 bytes of the 64k byte block (i.e. reg[0] = ffe0h). while the pc card socket provides 64m bytes of address space, the sed1374 only needs a 64k byte block of memory to accommodate its 40k byte display buffer and its 32 byte register set. for this reason only address bits a[15:0] are used while a[25:16] are ignored. because the entire 64m bytes of memory is available, the sed1374s memory and registers will be aliased every 64k bytes for a total of 1024 times. note if aliasing is not desirable, the upper addresses must be fully decoded.
epson research and development page 15 vancouver design center interfacing to the pc card bus sed1374 issue date: 98/12/10 x26a-g-009-02 5 software test utilities and windows? ce v2.0 display drivers are available for the sed1374. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 1374cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the sed1374 test utilities and windows ce v2.0 display drivers are available from your sales support contact or on the internet at http://www.erd.epson.com.
page 16 epson research and development vancouver design center sed1374 interfacing to the pc card bus x26a-g-009-02 issue date: 98/12/10 6 references 6.1 documents ? pc card (pcmcia) standard march 1997 ? epson research and development, inc., sed1374 embedded memory color lcd controller hardware functional specification ; document number x26a-a-001-xx. ? epson research and development, inc., sdu1374b0c rev. 1.0 isa bus evaluation board user manual; document number x26a-g-005-xx. ? epson research and development, inc., sed1374 programming notes and examples ; document number x26a-g-002-xx. 6.2 document sources ? pc card web page: http://www.pc-card.com. ? epson research and development web page: http://www.erd.epson.com
epson research and development page 17 vancouver design center interfacing to the pc card bus sed1374 issue date: 98/12/10 x26a-g-009-02 7 technical support 7.1 epson lcd controllers (sed1374) 7.2 pc card standard japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com pcmcia (personal computer memory card international association) 2635 north first street, suite 209 san jose, ca 95134 tel: (408) 433-2273 fax: (408) 433-9558 http://www.pc-card.com
page 18 epson research and development vancouver design center sed1374 interfacing to the pc card bus x26a-g-009-02 issue date: 98/12/10 this page left blank
sed1374 embedded memory color lcd controller interfacing to the motorola mpc821 microprocessor document number: x26a-g-010-02 copyright ? 1998, 1999 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center sed1374 interfacing to the motorola mpc821 microprocessor x26a-g-010-02 issue date: 99/01/05 this page left blank
epson research and development page 3 vancouver design center interfacing to the motorola mpc821 microprocessor sed1374 issue date: 99/01/05 x26a-g-010-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 interfacing to the mpc821 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 the mpc8xx system bus . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2 mpc821 bus overview . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2.1 normal (non-burst) bus transactions . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.2.2 burst cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.3 memory controller module . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.3.1 general-purpose chip select module (gpcm) . . . . . . . . . . . . . . . . . . . . 11 2.3.2 user-programmable machine (upm) . . . . . . . . . . . . . . . . . . . . . . . . . 12 3 sed1374 host bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.1 host bus interface modes . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.2 generic #1 host bus interface mode . . . . . . . . . . . . . . . . . . . . . 14 4 mpc821 to sed1374 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.2 hardware connections . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.3 sed1374 hardware configuration . . . . . . . . . . . . . . . . . . . . . . 18 4.4 mpc821 chip select configuration . . . . . . . . . . . . . . . . . . . . . . 19 4.5 test software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 5 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 6 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 6.1 documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 6.2 document sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 7.1 epson lcd/crt controllers (sed1374) . . . . . . . . . . . . . . . . . . . 24 7.2 motorola mpc821 processor . . . . . . . . . . . . . . . . . . . . . . . . 24
page 4 epson research and development vancouver design center sed1374 interfacing to the motorola mpc821 microprocessor x26a-g-010-02 issue date: 99/01/05 this page left blank
epson research and development page 5 vancouver design center interfacing to the motorola mpc821 microprocessor sed1374 issue date: 99/01/05 x26a-g-010-02 list of tables table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 table 4-1: list of connections from mpc821ads to sed1374 . . . . . . . . . . . . . . . . . . 16 table 4-2: configuration settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 table 4-3: host bus selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 list of figures figure 2-1: power pc memory read cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 2-2: power pc memory write cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 figure 4-1: typical implementation of mpc821 to sed1374 interface . . . . . . . . . . . . . . . . 15
page 6 epson research and development vancouver design center sed1374 interfacing to the motorola mpc821 microprocessor x26a-g-010-02 issue date: 99/01/05 this page left blank
epson research and development page 7 vancouver design center interfacing to the motorola mpc821 microprocessor sed1374 issue date: 99/01/05 x26a-g-010-02 1 introduction this application note describes the hardware and software environment required to provide an interface between the sed1374 embedded memory lcd controller and the motorola mpc821 processor. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson research and development website at http://www.erd.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 8 epson research and development vancouver design center sed1374 interfacing to the motorola mpc821 microprocessor x26a-g-010-02 issue date: 99/01/05 2 interfacing to the mpc821 2.1 the mpc8xx system bus the mpc8xx family of processors feature a high-speed synchronous system bus typical of modern risc microprocessors. this section provides an overview of the operation of the cpu bus in order to establish interface requirements. 2.2 mpc821 bus overview the mpc8xx microprocessor family uses a synchronous address and data bus. all io is synchronous to a square-wave reference clock called mclk (master clock). this clock runs at the machine cycle speed of the cpu core (typically 25 to 50 mhz). most outputs from the processor change state on the rising edge of this clock. similarly, most inputs to the processor are sampled on the rising edge. note the external bus can run at one-half the cpu core speed using the clock control register. this is typically used when the cpu core is operated above 50 mhz. the mpc821 can generate up to eight independent chip select outputs, each of which may be controlled by one of two types of timing generators: the general purpose chip select module (gpcm) or the user-programmable machine (upm). examples are given using the gpcm. it should be noted that all power pc microprocessors, including the mpc8xx family, use bit notation opposite from the convention used by most other microprocessor systems. bit numbering for the mpc8xx always starts with zero as the most significant bit, and incre- ments in value to the least-significant bit. for example, the most significant bits of the address bus and data bus are a0 and d0, while the least significant bits are a31 and d31. the mpc8xx uses both a 32-bit address and data bus. a parity bit is supported for each of the four byte lanes on the data bus. parity checking is done when data is read from external memory or peripherals, and generated by the mpc8xx bus controller on write cycles. all io accesses are memory-mapped meaning there is no separate io space in the power pc architecture. support is provided for both on-chip (dma controllers) and off-chip (other processors and peripheral controllers) bus masters. for further information on this topic, refer to section 6, references on page 23. the bus can support both normal and burst cycles. burst memory cycles are used to fill on-chip cache memory, and for certain on-chip dma operations. normal cycles are used for all other data transfers.
epson research and development page 9 vancouver design center interfacing to the motorola mpc821 microprocessor sed1374 issue date: 99/01/05 x26a-g-010-02 2.2.1 normal (non-burst) bus transactions a data transfer is initiated by the bus master by placing the memory address on address lines a0 through a31 and driving ts (transfer start) low for one clock cycle. several control signals are also provided with the memory address: ? tsiz[0:1] (transfer size) -- indicates whether the bus cycle is 8, 16, or 32-bit. ? rd/wr -- set high for read cycles and low for write cycles. ? at[0:3] (address type signals) -- provides more detail on the type of transfer being attempted. when the peripheral device being accessed has completed the bus transfer, it asserts ta (transfer acknowledge) for one clock cycle to complete the bus transaction. once ta has been asserted, the mpc821 will not start another bus cycle until ta has been de-asserted. the minimum length of a bus transaction is two bus clocks. figure 2-1: power pc memory read cycle illustrates a typical memory read cycle on the power pc system bus. figure 2-1: power pc memory read cycle a[0:31] d[0:31] tsiz[0:1], at[0:3] ts ta sysclk wait states transfer start transfer next transfer sampled when ta low rd/wr complete starts
page 10 epson research and development vancouver design center sed1374 interfacing to the motorola mpc821 microprocessor x26a-g-010-02 issue date: 99/01/05 figure 2-2: power pc memory write cycle illustrates a typical memory write cycle on the power pc system bus. figure 2-2: power pc memory write cycle if an error occurs, tea (transfer error acknowledge) is asserted and the bus cycle is aborted. for example, a peripheral device may assert tea if a parity error is detected, or the mpc821 bus controller may assert tea if no peripheral device responds at the addressed memory location within a bus time-out period. for 32-bit transfers, all data lines (d[0:31]) are used and the two low-order address lines a30 and a31 are ignored. for 16-bit transfers, data lines d0 through d15 are used and address line a30 is ignored. for 8-bit transfers, data lines d0 through d7 are used and all address lines (a[0:31]) are used. note this assumes that the power pc core is operating in big endian mode (typically the case for embedded systems). 2.2.2 burst cycles burst memory cycles are used to fill on-chip cache memory and to carry out certain on-chip dma operations. they are very similar to normal bus cycles with the following exceptions: ? always 32-bit. ? always attempt to transfer four 32-bit words sequentially. ? always address longword-aligned memory (i.e. a30 and a31 are always 0:0). ? do not increment address bits a28 and a29 between successive transfers; the addressed device must increment these address bits internally. a[0:31] d[0:31] tsiz[0:1], at[0:3] ts ta sysclk wait states transfer start rd/wr valid transfer next transfer complete starts
epson research and development page 11 vancouver design center interfacing to the motorola mpc821 microprocessor sed1374 issue date: 99/01/05 x26a-g-010-02 if a peripheral is not capable of supporting burst cycles, it can assert burst inhibit (bi ) simultaneously with ta , and the processor will revert to normal bus cycles for the remaining data transfers. burst cycles are mainly intended to facilitate cache line fills from program or data memory. they are normally not used for transfers to/from io peripheral devices such as the sed1354, therefore the interfaces described in this document do not attempt to support burst cycles. however, the example interfaces include circuitry to detect the assertion of bdip and respond with bi if caching is accidently enabled for the sed1354 address space. 2.3 memory controller module 2.3.1 general-purpose chip select module (gpcm) the general-purpose chip select module (gpcm) is used to control memory and peripheral devices which do not require special timing or address multiplexing. in addition to the chip select output, it can generate active-low output enable (oe ) and write enable (we ) signals compatible with most memory and x86-style peripherals. the mpc821 bus controller also provides a read/write (rd/wr ) signal which is compatible with most 68k peripherals. the gpcm is controlled by the values programmed into the base register (br) and option register (or) of the respective chip select. the option register sets the base address, the block size of the chip select, and controls the following timing parameters: ? the acs bit field allows the chip select assertion to be delayed with respect to the address bus valid, by 0, ?, or ? clock cycle. ? the csnt bit causes chip select and we to be negated ? clock cycle earlier than normal. ? the trlx (relaxed timing) bit will insert an additional one clock delay between asser- tion of the address bus and chip select. this accommodates memory and peripherals with long setup times. ? the ehtr (extended hold time) bit will insert an additional 1-clock delay on the first access to a chip select. ? up to 15 wait states may be inserted, or the peripheral can terminate the bus cycle itself by asserting ta (transfer acknowledge). ? any chip select may be programmed to assert bi (burst inhibit) automatically when its memory space is addressed by the processor core.
page 12 epson research and development vancouver design center sed1374 interfacing to the motorola mpc821 microprocessor x26a-g-010-02 issue date: 99/01/05 2.3.2 user-programmable machine (upm) the upm is typically used to control memory types, such as dynamic rams, which have complex control or address multiplexing requirements. the upm is a general purpose ram-based pattern generator which can control address multiplexing, wait state gener- ation, and five general-purpose output lines on the mpc821. up to 64 pattern locations are available, each 32 bits wide. separate patterns may be programmed for normal accesses, burst accesses, refresh (timer) events, and exception conditions. this flexibility allows almost any type of memory or peripheral device to be accommodated by the mpc821. in this application note, the gpcm is used instead of the upm, since the gpcm has enough flexibility to accommodate the sed1354 and it is desirable to leave the upm free to handle other interfacing duties, such as edo dram.
epson research and development page 13 vancouver design center interfacing to the motorola mpc821 microprocessor sed1374 issue date: 99/01/05 x26a-g-010-02 3 sed1374 host bus interface this section is a summary of the host bus interface modes available on the sed1374 and offers some detail on the generic #1 host bus interface used to implement the interface to the mpc821 bus. 3.1 host bus interface modes the sed1374 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. six host bus interface modes are supported: ?hitachi sh-4. ?hitachi sh-3 ? motorola mc68000 (using upper data strobe/lower data strobe). ? motorola mc68020/mc68030/mc683xx (using data strobe/dsackx). ? generic #1 (chip select, plus individual read enable/write enable for each byte). ? generic #2 (external chip select, shared read/write enable for high byte, individual read/write enable for low byte). the sed1374 latches cnf[2:0] and bs# to allow selection of the host bus interface on the rising edge of reset#. after releasing reset, the host bus interface signals assume their selected configuration. the following table shows the functions of each host bus interface signal. table 3-1: host bus interface pin mapping sed1374 pin names sh-3 sh-4 mc68k #1 mc68k #2 generic #1 generic #2 ab[15:1] a[15:1] a[15:1] a[15:1] a[15:1] a[15:1] a[15:1] ab0a0 a0lds#a0 a0 a0 db[15:0] d[15:0] d[15:0] d[15:0] d[31:16] d[15:0] d[15:0] we1# we1# we1# uds# ds# we1# bhe# cs# csn# csn# external decode external decode external decode external decode bclk ckio ckio clk clk bclk bclk bs# bs# bs# as# as# connect to v ss connect to io v dd rd/wr# rd/wr# rd/wr# r/w# r/w# rd1# connect to io v dd rd# rd# rd# connect to io v dd siz1 rd0# rd# we0# we0# we0# connect to io v dd siz0 we0# we# wait# wait# rdy# dtack# dsack1# wait# wait# reset# reset# reset# reset# reset# reset# reset#
page 14 epson research and development vancouver design center sed1374 interfacing to the motorola mpc821 microprocessor x26a-g-010-02 issue date: 99/01/05 two other configuration options (cnf[4:3]) are also made at time of hardware reset: ? endian mode setting (big endian or little endian). ? polarity of the lcdpwr signal. the capability to select the endian mode independent of the host bus interface offers more flexibility in configuring the sed1374 with other cpus. for details on configuration, refer to the sed1374 hardware functional specification , document number x26a-a-001-xx. 3.2 generic #1 host bus interface mode generic #1 host bus interface mode is the most general and least processor-specific host bus interface mode on the sed1374. the generic # 1 host bus interface mode was chosen for this interface due to the simplicity of its timing. the host bus interface requires the following signals: ? busclk is a clock input which is required by the sed1374 host interface. it is separate from the input clock (clki) and is typically driven by the host cpu system clock. ? the address inputs ab0 through ab15, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset. ? chip select (cs#) is driven by decoding the high-order address lines to select the proper io or memory address space. ? we0# and we1# are write enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is writing data to the sed1374. these signals must be generated by external hardware based on the control outputs from the host cpu. ? rd# and rd/wr# are read enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is reading data from the sed1374. these signals must be generated by external hardware based on the control outputs from the host cpu. ? wait# is a signal output from the sed1374 that indicates the host cpu must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the sed1374 may occur asynchronously to the display update, it is possible that contention may occur in accessing the sed1374 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high. ? the bus status (bs#) signal is not used in the bus interface for generic #1 mode. however, bs# is used to configure the sed1374 for generic #1 mode and should be tied low (connected to gnd).
epson research and development page 15 vancouver design center interfacing to the motorola mpc821 microprocessor sed1374 issue date: 99/01/05 x26a-g-010-02 4 mpc821 to sed1374 interface 4.1 hardware description the interface between the sed1374 and the mpc821 requires minimal glue logic. one inverter is required to change the polarity of the wait# signal (an active low signal) to insert wait states in the bus cycle. the mpc821 transfer acknowledge signal (ta ) is an active low signal which ends the current bus cycle. the inverter is enabled using cs# so that ta is not driven by the sed1374 during non-sed1374 bus cycles. a single resistor is used to speed up the rise time of the wait# (ta ) signal when terminating the bus cycle. bs# (bus start) is not used in this implementation and should be tied low (connected to gnd). the following diagram shows a typical implementation of the mpc821 to sed1374 interface. figure 4-1: typical implementation of mpc821 to sed1374 interface mpc821 sed1374 a[16:31] d[0:15] cs4 ta we0 we1 oe sysclk reset ab15-ab0 db[15:d0] cs# wait# we1# we0# rd/wr# rd# busclk reset# vcc 470
page 16 epson research and development vancouver design center sed1374 interfacing to the motorola mpc821 microprocessor x26a-g-010-02 issue date: 99/01/05 4.2 hardware connections the following table details the connections between the pins and signals of the mpc821 and the sed1374. table 4-1: list of connections from mpc821ads to sed1374 mpc821 signal name mpc821ads connector and pin name sed1374 signal name vcc p6-a1, p6-b1 vcc a16 p6-b24 sa15 a17 p6-c24 sa14 a18 p6-d23 sa13 a19 p6-d22 sa12 a20 p6-d19 sa11 a21 p6-a19 sa10 a22 p6-d28 sa9 a23 p6-a28 sa8 a24 p6-c27 sa7 a25 p6-a26 sa6 a26 p6-c26 sa5 a27 p6-a25 sa4 a28 p6-d26 sa3 a29 p6-b25 sa2 a30 p6-b19 sa1 a31 p6-d17 sa0 d0 p12-a9 sd15 d1 p12-c9 sd14 d2 p12-d9 sd13 d3 p12-a8 sd12 d4 p12-b8 sd11 d5 p12-d8 sd10 d6 p12-b7 sd9 d7 p12-c7 sd8 d8 p12-a15 sd7 d9 p12-c15 sd6 d10 p12-d15 sd5 d11 p12-a14 sd4 d12 p12-b14 sd3 d13 p12-d14 sd2 d14 p12-b13 sd1 d15 p12-c13 sd0 sreset p9-d15 reset# sysclk p9-c2 busclk cs4 p6-d13 cs#
epson research and development page 17 vancouver design center interfacing to the motorola mpc821 microprocessor sed1374 issue date: 99/01/05 x26a-g-010-02 note the bit numbering of the power pc bus signals is reversed from the normal convention, e.g.: the most significant address bit is a0, the next is a1, a2, etc. ta p6-b6 to inverter enabled by cs# wait# we0 p6-b15 we1# we1 p6-a14 we0# oe p6-b16 rd/wr#, rd# gnd p12-a1, p12-b1, p12-a2, p12-b2, p12-a3, p12-b3, p12-a4, p12-b4, p12-a5, p12-b5, p12-a6, p12-b6, p12-a7 vss table 4-1: list of connections from mpc821ads to sed1374 (continued) mpc821 signal name mpc821ads connector and pin name sed1374 signal name
page 18 epson research and development vancouver design center sed1374 interfacing to the motorola mpc821 microprocessor x26a-g-010-02 issue date: 99/01/05 4.3 sed1374 hardware configuration the sed1374 uses cnf4 through cnf0 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. refer to the sed1374 hardware functional specification , document number x26a-a-001-xx for details. the tables below show only those configuration settings important to the mpc821 interface. the settings are very similar to the isa bus with the following exceptions: ? the wait# signal is active high rather than active low. ? the power pc is big endian rather than little endian. table 4-2: configuration settings signal low high cnf0 see host bus selection table below see host bus selection table below cnf1 cnf2 cnf3 little endian big endian cnf4 active low lcdpwr signal active high lcdpwr signal = configuration for mpc821 host bus interface table 4-3: host bus selection cnf2 cnf1 cnf0 bs# host bus interface 0 0 0 x sh-4 interface 0 0 1 x sh-3 interface 0 1 0 x reserved 0 1 1 x mc68k #1, 16-bit 1 0 0 x reserved 1 0 1 x mc68k #2, 16-bit 1 1 0 0 reserved 1 1 0 1 reserved 1 1 1 0 generic #1, 16-bit 1 1 1 1 generic #2, 16-bit = configuration for mpc821 host bus interface
epson research and development page 19 vancouver design center interfacing to the motorola mpc821 microprocessor sed1374 issue date: 99/01/05 x26a-g-010-02 4.4 mpc821 chip select configuration the dram on the mpc821 ads board extends from address 0 through 3f ffffh, so the sed1374 is addressed starting at 40 0000h. the sed1374 uses a 64k byte segment of memory starting at this address, with the first 40k bytes used for the display buffer and the upper 32 bytes of this memory block used for the sed1374 internal registers. chip select 4 is used to control the sed1374. the following options are selected in the base address register (br4): ? ba (0:16) = 0000 0000 0100 0000 0 C set starting address of sed1374 to 40 0000h ? at (0:2) = 0 C ignore address type bits ? ps (0:1) = 1:0 C memory port size is 16 bits ? pare = 0 C disable parity checking ? wp = 0 C disable write protect ? ms (0:1) = 0:0 C select general purpose chip select module to control this chip select ? v = 1 C set valid bit to enable chip select the following options were selected in the option register (or4): ? am (0:16) = 1111 1111 1100 0000 0 C mask all but upper 10 address bits; sed1374 consumes 4m byte of address space ? atm (0:2) = 0 C ignore address type bits ? csnt = 0 C normal cs /we negation ? acs (0:1) = 1:1 C delay cs assertion by ? clock cycle from address lines ? bi = 1 C assert burst inhibit ? scy (0:3) = 0 C wait state selection; this field is ignored since external transfer acknowledge is used; see seta below ? seta = 1 C the sed1374 generates an external transfer acknowledge using the wait# line ? trlx = 0 C normal timing ? ehtr = 0 C normal timing
page 20 epson research and development vancouver design center sed1374 interfacing to the motorola mpc821 microprocessor x26a-g-010-02 issue date: 99/01/05 4.5 test software the test software to exercise this interface is very simple. it configures chip select 4 on the mpc821 to map the sed1374 to an unused 64k byte block of address space and loads the appropriate values into the option register for cs4. at that point the software runs in a tight loop reading the 1374 revision code register reg[00h], which allows monitoring of the bus timing on a logic analyzer. the source code for this test routine is as follows: br4 equ $120 ; cs4 base register or4 equ $124 ; cs4 option register memstart equ $40 ; upper word of sed1374 start address revcodereg equ ffe0 ; address of revision code regis- ter start mfspr r1,immr ; get base address of internal registers andis. r1,r1,$ffff ; clear lower 16 bits to 0 andis. r2,r0,0 ; clear r2 oris r2,r2,memstart ; write base address ori r2,r2,$0801 ; port size 16 bits; select gpcm; enable stw r2,br4(r1) ; write value to base register andis. r2,r0,0 ; clear r2 oris r2,r2,$ffc0 ; address mask C use upper 10 bits ori r2,r2,$0708 ; normal cs negation; delay cs ? clock; ; inhibit burst stw r2,or4(r1) ; write to option register andis. r1,r0,0 ; clear r1 oris r1,r1,memstart ; point r1 to start of sed1374 mem space loop lbz r0,revcodereg(r1) ; read revision code into r1 b loop ; branch forever end
epson research and development page 21 vancouver design center interfacing to the motorola mpc821 microprocessor sed1374 issue date: 99/01/05 x26a-g-010-02 this code was entered into the memory of the mpc821ads using the line-by-line assembler in mpc8bug, the debugger provided with the ads board. it was executed on the ads and a logic analyzer was used to verify operation of the interface hardware. note mpc8bug does not support comments or symbolic equates; these have been added for clarity. it is important to note that when the mpc821 comes out of reset, its on-chip caches and mmu are disabled. if the data cache is enabled, then the mmu must be set up so that the sed1374 memory block is tagged as non-cacheable, to ensure that accesses to the sed1374 will occur in proper order, and also to ensure that the mpc821 does not attempt to cache any data read from or written to the sed1374 or its display buffer.
page 22 epson research and development vancouver design center sed1374 interfacing to the motorola mpc821 microprocessor x26a-g-010-02 issue date: 99/01/05 5 software test utilities and windows? ce v2.0 display drivers are available for the sed1374. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 1374cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the sed1374 test utilities and windows ce v2.0 display drivers are available from your sales support contact or on the internet at http://www.erd.epson.com.
epson research and development page 23 vancouver design center interfacing to the motorola mpc821 microprocessor sed1374 issue date: 99/01/05 x26a-g-010-02 6 references 6.1 documents ? motorola inc., power pc mpc821 portable systems microprocessor users manual , motorola publication no. mpc821um/ad; available on the internet at http://www.mot.com/sps/adc/pps/_subpgs/_documentation/821/821um.html. ? epson research and development, inc., sed1374 embedded memory lcd controller hardware functional specification ; document number x126a-a-002-xx. ? epson research and development, inc., sdu1374b0c rev. 1.0 isa bus evaluation board user manual; document number x26a-g-005-xx. ? epson research and development, inc., programming notes and examples ; document number x26a-g-002-xx. 6.2 document sources ? motorola inc. literature distribution center: (800) 441-2447. ? motorola inc. website: http://www.mot.com. ? epson research and development website: http://www.erd.epson.com.
page 24 epson research and development vancouver design center sed1374 interfacing to the motorola mpc821 microprocessor x26a-g-010-02 issue date: 99/01/05 7 technical support 7.1 epson lcd/crt controllers (sed1374) 7.2 motorola mpc821 processor ? motorola design line, (800) 521-6274. ? local motorola sales office or authorized distributor. japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com
sed1374 embedded memory color lcd controller interfacing to the motorola mcf5307 "coldfire" microprocessor document number: x26a-g-011-02 copyright ? 1998, 1999 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center sed1374 interfacing to the motorola mcf5307 "coldfire" microprocessor x26a-g-011-02 issue date: 99/01/05 this page left blank
epson research and development page 3 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor sed1374 issue date: 99/01/05 x26a-g-011-02 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 interfacing to the mcf5307 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 the mcf5307 system bus . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.2 normal (non-burst) bus transactions . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.3 burst cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.2 chip-select module . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3 sed1374 bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.1 bus interface modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.2 generic #1 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 12 4 mcf5307 to sed1374 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.2 sed1374 hardware configuration . . . . . . . . . . . . . . . . . . . . . . 14 4.3 mcf5307 chip select configuration . . . . . . . . . . . . . . . . . . . . . 15 5 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.1 documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.2 document sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 7.1 epson lcd controllers (sed1374) . . . . . . . . . . . . . . . . . . . . . 18 7.2 motorola mcf5307 processor . . . . . . . . . . . . . . . . . . . . . . . . 18
page 4 epson research and development vancouver design center sed1374 interfacing to the motorola mcf5307 "coldfire" microprocessor x26a-g-011-02 issue date: 99/01/05 this page left blank
epson research and development page 5 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor sed1374 issue date: 99/01/05 x26a-g-011-02 list of tables table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 table 4-1: summary of power-on/reset options . . . . . . . . . . . . . . . . . . . . . . . . . . 14 table 4-2: host bus interface selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 list of figures figure 2-1: mcf5307 memory read cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 2-2: mcf5307 memory write cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 4-1: typical implementation of mcf5307 to sed1374 interface . . . . . . . . . . . . . . . 13
page 6 epson research and development vancouver design center sed1374 interfacing to the motorola mcf5307 "coldfire" microprocessor x26a-g-011-02 issue date: 99/01/05 this page left blank
epson research and development page 7 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor sed1374 issue date: 99/01/05 x26a-g-011-02 1 introduction this application note describes the hardware required to provide an interface between the sed1374 embedded memory lcd controller and the motorola mcf5307 processor. the pairing of these two devices results in an embedded system offering impressive display capability with very low power consumption. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson research and development website at http://www.erd.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 8 epson research and development vancouver design center sed1374 interfacing to the motorola mcf5307 "coldfire" microprocessor x26a-g-011-02 issue date: 99/01/05 2 interfacing to the mcf5307 2.1 the mcf5307 system bus the mcf5200/5300 family of processors feature a high-speed synchronous system bus typical of modern microprocessors. this section is an overview of the operation of the cpu bus to establish interface requirements. 2.1.1 overview the mcf5307 microprocessor family uses a synchronous address and data bus, very similar in architecture to the mc68040 and mpc8xx. all outputs and inputs are timed with respect to a square-wave reference clock called bclk0 (master clock). this clock runs at a software-selectable divisor rate from the machine cycle speed of the cpu core, typically 20 to 33 mhz. both the address and the data bus are 32 bits in width. all io accesses are memory-mapped; there is no separate io space in the coldfire architecture. the bus can support two types of cycles, normal and burst. burst memory cycles are used to fill on-chip cache memories, and for certain on-chip dma operations. normal cycles are used for all other data transfers. 2.1.2 normal (non-burst) bus transactions a data transfer is initiated by the bus master by placing the memory address on address lines a31 through a0 and driving ts (transfer start) low for one clock cycle. several control signals are also provided with the memory address: ? siz[1:0] (transfer size), which indicate whether the bus cycle is 8, 16, or 32 bits in width. ?r/w , which is high for read cycles and low for write cycles. ? a set of transfer type signals (tt[1:0]) which provide more detail on the type of transfer being attempted. ?tip (transfer in progress), which is asserted whenever a bus cycle is active. when the peripheral device being accessed has completed the bus transfer, it asserts ta (transfer acknowledge) for one clock cycle, completing the bus transaction. once ta has been asserted, the mcf5307 will not start another bus cycle until ta has been de-asserted. the minimum length of a bus transaction is two bus clocks. figure 2-1 illustrates a typical memory read cycle on the mcf5307 system bus, and figure 2-2 illustrates a memory write cycle.
epson research and development page 9 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor sed1374 issue date: 99/01/05 x26a-g-011-02 figure 2-1: mcf5307 memory read cycle figure 2-2: mcf5307 memory write cycle 2.1.3 burst cycles burst cycles are very similar to normal cycles, except that they occur as a series of four back-to-back, 32-bit memory reads or writes, with the tip (transfer in progress) output asserted continuously through the burst. burst memory cycles are mainly intended to facil- itate cache line fill from program or data memory; they are typically not used for transfers to or from io peripheral devices such as the sed1374. the mcf5307 chip selects provide a mechanism to disable burst accesses for peripheral devices which are not able to support them. a[31:0] d[31:0] siz[1:0], tt[1:0] ts ta bclk0 wait states transfer start transfer next transfer sampled when ta low r/w complete starts tip a[31:0] d[31:0] siz[1:0], tt[1:0] ts ta bclk0 wait states transfer start r/w valid transfer next transfer complete starts tip
page 10 epson research and development vancouver design center sed1374 interfacing to the motorola mcf5307 "coldfire" microprocessor x26a-g-011-02 issue date: 99/01/05 2.2 chip-select module in addition to generating eight independent chip-select outputs, the mcf5307 chip select module can generate active-low output enable (oe ) and write enable (we ) signals compatible with most memory and x86-style peripherals. the mcf5307 bus controller also provides a read/write (r/w ) signal which is compatible with most 68k peripherals. chip selects 0 and 1 can be programmed independently to respond to any base address and block size. chip select 0 can be active immediately after reset, and is typically used to control a boot rom. chip select 1 is likewise typically used to control a large static or dynamic ram block. chip selects 2 through 7 have fixed block sizes of 2m bytes each. each has a unique, fixed offset from a common, programmable starting address. these chip selects are well-suited to typical io addressing requirements. each chip select may be individually programmed for port size (8/16/32 bits), 0-15 wait states or external acknowledge, address space type, burst or non-burst cycle support, and write protect.
epson research and development page 11 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor sed1374 issue date: 99/01/05 x26a-g-011-02 3 sed1374 bus interface this section is a summary of the host bus interface modes available on the sed1374 and offers some detail on the generic #1 host bus interface used to implement the interface to the mcf5307. 3.1 bus interface modes the sed1374 implements a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. six bus interface modes are supported: ?hitachi sh-4. ?hitachi sh-3 ? motorola mc68000 (using upper data strobe/lower data strobe). ? motorola mc68020/mc68030/mc683xx (using data strobe/dsackx). ? generic #1 (chip select, plus individual read enable/write enable for each byte). ? generic #2 (external chip select, shared read/write enable for high byte, individual read/write enable for low byte). the sed1374 latches cnf[2:0] and bs# to allow selection of the host bus interface on the rising edge of reset#. after releasing reset, the bus interface signals assume their selected configuration. the following table shows the functions of each host bus interface signal. table 3-1: host bus interface pin mapping sed1374 pin names sh-3 sh-4 mc68k #1 mc68k #2 generic #1 generic #2 ab[15:1] a[15:1] a[15:1] a[15:1] a[15:1] a[15:1] a[15:1] ab0a0 a0lds#a0 a0 a0 db[15:0] d[15:0] d[15:0] d[15:0] d[31:16] d[15:0] d[15:0] we1# we1# we1# uds# ds# we1# bhe# cs# csn# csn# external decode external decode external decode external decode bclk ckio ckio clk clk bclk bclk bs# bs# bs# as# as# connect to v ss connect to io v dd rd/wr# rd/wr# rd/wr# r/w# r/w# rd1# connect to io v dd rd# rd# rd# connect to io v dd siz1 rd0# rd# we0# we0# we0# connect to io v dd siz0 we0# we# wait# wait# rdy# dtack# dsack1# wait# wait# reset# reset# reset# reset# reset# reset# reset#
page 12 epson research and development vancouver design center sed1374 interfacing to the motorola mcf5307 "coldfire" microprocessor x26a-g-011-02 issue date: 99/01/05 two other configuration options (cnf[4:3]) are also made at time of hardware reset: ? endian mode setting (big endian or little endian). ? polarity of the lcdpwr signal. the capability to select the endian mode independent of the host bus interface offers more flexibility in configuring the sed1374 with other cpus. for details on configuration, refer to the sed1374 hardware functional specification , document number x26a-a-001-xx. 3.2 generic #1 interface mode generic #1 interface mode is the most general and least processor-specific interface mode on the sed1374. the generic # 1 interface mode was chosen for this interface due to the simplicity of its timing. the interface requires the following signals: ? busclk is a clock input which is required by the sed1374 host interface. it is separate from the input clock (clki) and is typically driven by the host cpu system clock. ? the address inputs ab0 through ab15, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset. ? chip select (cs#) is driven by decoding the high-order address lines to select the proper io or memory address space. ? we0# and we1# are write enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is writing data to the sed1374. these signals must be generated by external hardware based on the control outputs from the host cpu. ? rd# and rd/wr# are read enables for the low-order and high-order bytes, respectively, to be driven low when the host cpu is reading data from the sed1374. these signals must be generated by external hardware based on the control outputs from the host cpu. ? wait# is a signal output from the sed1374 that indicates the host cpu must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the sed1374 may occur asynchronously to the display update, it is possible that contention may occur in accessing the sed1374 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high. ? the bus status (bs#) signal is not used in the bus interface for generic #1 mode. however, bs# is used to configure the sed1374 for generic #1 mode and should be tied low (connected to gnd).
epson research and development page 13 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor sed1374 issue date: 99/01/05 x26a-g-011-02 4 mcf5307 to sed1374 interface 4.1 hardware description the sed1374 is interfaced to the mcf5307 with a minimal amount of glue logic. one inverter is required to change the polarity of the wait# signal, which is an active low signal to insert wait states in the bus cycle, while the mcf5307s transfer acknowledge signal (ta ) is an active low signal to end the current bus cycle. the inverter is enabled by cs# so that ta is not driven by the sed1374 during non-sed1374 bus cycles. a single resistor is used to speed up the rise time of the wait# (ta ) signal when terminating the bus cycle. the following diagram shows a typical implementation of the mcf5307 to sed1374 interface. figure 4-1: typical implementation of mcf5307 to sed1374 interface mcf5307 sed1374 a[16:31] d[0:15] cs4 ta we3 we2 oe bclk0 reset ab[15:0] db[15:0] cs# wait# we1# we0# rd/wr# rd# busclk reset# vcc 470
page 14 epson research and development vancouver design center sed1374 interfacing to the motorola mcf5307 "coldfire" microprocessor x26a-g-011-02 issue date: 99/01/05 4.2 sed1374 hardware configuration the sed1374 uses cnf0 through cnf4 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. table 4-1: summary of power- on/reset options and table 4-2: host bus interface selection shows the settings used for the sed1374 in this interface. table 4-1: summary of power-on/reset options sed1374 pin name value on this pin at the rising edge of reset# is used to configure: (0/1) 01 cnf0 see host bus selection table below see host bus selection table below cnf1 cnf2 cnf3 little endian big endian cnf4 active low lcdpwr signal active high lcdpwr signal = configuration for mfc5307 support table 4-2: host bus interface selection cnf2 cnf1 cnf0 bs# host bus interface 0 0 0 x sh-4 bus interface 0 0 1 x sh-3 bus interface 0 1 0 x reserved 0 1 1 x mc68k bus interface #1, 16-bit 1 0 0 x reserved 1 0 1 x mc68k bus interface #2, 16-bit 1 1 0 0 reserved 1 1 0 1 reserved 1 1 1 0 generic #1, 16-bit 1 1 1 1 generic #2, 16-bit = configuration for mfc5307 support
epson research and development page 15 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor sed1374 issue date: 99/01/05 x26a-g-011-02 4.3 mcf5307 chip select configuration chip selects 0 and 1 have programmable block sizes from 64k bytes through 2g bytes. however, these chip selects would normally be needed to control system ram and rom. therefore, one of the io chip selects, cs2 through cs7, is required to address the entire address space of the sed1374. these io chip selects have a fixed, 2m byte block size. in the example interface, chip select 4 is used to control the sed1374. the sed1374 only uses a 64k byte block with its 40k byte display buffer residing at the start of this 64k byte block and its internal registers occupying the last 32 bytes of this block. this 64k byte block of memory will be shadowed over the entire 2m byte space. the csbar register should be set to the upper 8 bits of the desired base address. the following options should be selected in the chip select mask registers (csmr4/5): ? wp = 0 C disable write protect ? am = 0 - enable alternate bus master access to the sed1374 ? c/i = 1 - disable cpu space access to the sed1374 ? sc = 1 - disable supervisor code space access to the sed1374 ? sd = 0 - enable supervisor data space access to the sed1374 ? uc = 1 - disable user code space access to the sed1374 ? ud = 0 - enable user data space access to the sed1374 ? v = 1 - global enable (valid) for the chip select the following options should be selected in the chip select control registers (cscr4/5): ? ws0-3 = 0 - no internal wait state setting ? aa = 0 - no automatic acknowledgment ? ps (1:0) = 1:0 C memory port size is 16 bits ? bem = 0 C byte enable/write enable active on writes only ? bstr = 0 C disable burst reads ? bstw = 0 C disable burst writes
page 16 epson research and development vancouver design center sed1374 interfacing to the motorola mcf5307 "coldfire" microprocessor x26a-g-011-02 issue date: 99/01/05 5 software test utilities and windows? ce v2.0 display drivers are available for the sed1374. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 1374cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the sed1374 test utilities and windows ce v2.0 display drivers are available from your sales support contact or on the internet at http://www.erd.epson.com.
epson research and development page 17 vancouver design center interfacing to the motorola mcf5307 "coldfire" microprocessor sed1374 issue date: 99/01/05 x26a-g-011-02 6 references 6.1 documents ? motorola inc., mcf5307 coldfire? integrated microprocessor users manual , motorola publication no. mcf5307um/ad; available on the internet at http://www.mot.com/sps/hpesd/prod/coldfire/5307um.html. ? epson research and development, inc., sed1374 hardware functional specification ; document number x26a-a-002-xx. ? epson research and development, inc., sdu1374b0c rev. 1.0 isa bus evaluation board user manual; document number x26a-g-005-xx. ? epson research and development, inc., sed1374 programming notes and examples ; document number x26a-g-002-xx. 6.2 document sources ? motorola inc.: motorola literature distribution center, (800) 441-2447. ? motorola website: http://www.mot.com. ? epson research and development website: http://www.erd.epson.com
page 18 epson research and development vancouver design center sed1374 interfacing to the motorola mcf5307 "coldfire" microprocessor x26a-g-011-02 issue date: 99/01/05 7 technical support 7.1 epson lcd controllers (sed1374) 7.2 motorola mcf5307 processor ? motorola design line, (800) 521-6274. ? local motorola sales office or authorized distributor. japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com
sed1374 embedded memory color lcd controller interfacing to the philips mips pr31500/pr31700 processor document number: x26a-g-012-01 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center sed1374 interfacing to the philips mips pr31500/pr31700 processor x26a-g-012-01 issue date: 98/11/09 this page left blank
epson research and development page 3 vancouver design center interfacing to the philips mips pr31500/pr31700 processor sed1374 issue date: 98/11/09 x26a-g-012-01 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.1 general description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 2 direct connection to the philips pr31500/pr31700 . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 general description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 2.2 memory mapping and aliasing . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 2.3 sed1374 configuration and pin mapping . . . . . . . . . . . . . . . . . . . . . . . .9 3 system design using the ite it8368e pc card buffer . . . . . . . . . . . . . . . . . . . . 10 3.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.2 it8368e configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.3 memory mapping and aliasing . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.4 sed1374 configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 5 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.1 epson lcd controllers (sed1374) . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.2 philips mips pr31500/pr31700 processor . . . . . . . . . . . . . . . . . . . . . . 15 5.3 ite it8368e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
page 4 epson research and development vancouver design center sed1374 interfacing to the philips mips pr31500/pr31700 processor x26a-g-012-01 issue date: 98/11/09 this page left blank
epson research and development page 5 vancouver design center interfacing to the philips mips pr31500/pr31700 processor sed1374 issue date: 98/11/09 x26a-g-012-01 list of tables table 2-1: sed1374 configuration for direct connection . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 table 2-2: sed1374 generic #2 interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 table 3-1: pr31500/pr31700 to unbuffered pc card slots system address mapping . . . . . . . . . . . . 12 table 3-2: pr31500/pr31700 to pc card slots address remapping using the it8368e . . . . . . . . . . . 12 table 3-3: sed1374 configuration using the it8368e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 table 3-4: sed1374 generic #1 interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 list of figures figure 2-1: sed1374 to pr31500/pr31700 direct connection . . . . . . . . . . . . . . . . . . . . . . . . . 8 figure 3-1: sed1374 to pr31500/pr31700 connection using an it8368e . . . . . . . . . . . . . . . . . . 10
page 6 epson research and development vancouver design center sed1374 interfacing to the philips mips pr31500/pr31700 processor x26a-g-012-01 issue date: 98/11/09 this page left blank
epson research and development page 7 vancouver design center interfacing to the philips mips pr31500/pr31700 processor sed1374 issue date: 98/11/09 x26a-g-012-01 1 introduction this application note describes the hardware and software environment required to provide an interface between the sed1374 embedded memory color graphics lcd controller and the philips mips pr31500/pr31700 processor. for further information on the sed1374, refer to the sed1374 hardware functional specification , document number x26a-a-001-xx. for further information on the pr31500/pr31700, contact philips or refer to the philips website at http://www.philips.com. for further information on the ite it8368e, refer to the it8368e pc card / gpio buffer chip specification . 1.1 general description the philips mips pr31500/pr31700 processor supports up to two pc card (pcmcia) slots. it is through this host bus interface that the sed1374 connects to the pr31500/pr31700 processor. the sed1374 can be successfully interfaced using one of two configurations: ? direct connection to pr31500/pr31700 (see section 2, direct connection to the philips pr31500/pr31700 on page 8). ? system design using one ite it8368e pc card/gpio buffer chip (see section 3, system design using the ite it8368e pc card buffer on page 10).
page 8 epson research and development vancouver design center sed1374 interfacing to the philips mips pr31500/pr31700 processor x26a-g-012-01 issue date: 98/11/09 2 direct connection to the philips pr31500/pr31700 2.1 general description in this example implementation the sed1374 occupies the pr31500/pr31700 pc card slot #1. the sed1374 is easily interfaced to the pr31500/pr31700 with minimal additional logic. the address bus of the pr31500/pr31700 pc card interface is multiplexed and can be demultiplexed using an advanced cmos latch (e.g., 74act373). the direct connection approach makes use of the sed1374 in its generic interface #2 configuration. the following diagram demonstrates a typical implementation of the interface. figure 2-1: sed1374 to pr31500/pr31700 direct connection the generic #2 host interface control signals of the sed1374 are asynchronous with respect to the sed1374 bus clock. this gives the system designer full flexibility to choose the appropriate source (or sources) for clki and bclk. the choice of whether both clocks should be the same, and whether to use dclkout (divided) as clock source, should be based on the desired: ? pixel and frame rates. ? power budget. ? part count. ? maximum sed1374 clock frequencies. the sed1374 also has internal clock dividers providing additional flexibility. we# rd# db[7:0] wait# bclk sed1374 reset# ab[15:13] d[31:24] /card1wait a[12:0] pr31500/pr31700 pull-up oscillator bhe# /card1csl /card1csh latch ale system reset /we /rd bs# rd/wr# io v dd io v dd endian db[15:8] d[23:16] ab[12:0] v dd dclkout ...or... cs# clki see text clock divider io v dd , core v dd +3.3v
epson research and development page 9 vancouver design center interfacing to the philips mips pr31500/pr31700 processor sed1374 issue date: 98/11/09 x26a-g-012-01 2.2 memory mapping and aliasing the sed1374 requires an addressing space of 64k bytes. the on-chip display memory occupies the range 0 through 9fffh. the registers occupy the range ffe0h through ffffh. the pr31500/pr31700 demultiplexed address lines a16 and above are ignored, thus the sed1374 is aliased 1024 times at 64k byte intervals over the 64m byte pc card slot #1 memory space. in this example implementation, the pr31500/pr31700 control signal /cardreg is ignored, the sed1374 also takes up the entire pc card slot 1 configuration space. note if aliasing is undesirable, additional decoding circuitry must be added. 2.3 sed1374 configuration and pin mapping the sed1374 is configured at power up by latching the state of the cnf[4:0] pins. pin bs# also plays a role in host bus interface configuration. for details on configuration, refer to the sed1374 hardware functional specification , document number x26a-a-001-xx. the table below shows those configuration settings relevant to the direct connection approach. when the sed1374 is configured for generic #2 interface, the host interface pins are mapped as in the table below. table 2-1: sed1374 configuration for direct connection sed1374 configuration pin value hard wired on this pin is used to configure: 1 (io v dd )0 (v ss ) bs# generic #2 generic #1 cnf3 big endian little endian cnf[2:0] 111: generic #1 or #2 = configuration for philips pr31500/pr31700 host bus interface table 2-2: sed1374 generic #2 interface pin mapping pin name pin function we1# bhe# bs# connect to io v dd rd/wr# connect to io v dd rd# rd# we0# we#
page 10 epson research and development vancouver design center sed1374 interfacing to the philips mips pr31500/pr31700 processor x26a-g-012-01 issue date: 98/11/09 3 system design using the ite it8368e pc card buffer if the system designer uses the ite it8368e pc card and multiple-function i/o buffer, the sed1374 can be interfaced so that it shares a pc card slot. the sed1374 is mapped to a rarely- used 16m byte portion of the pc card slot buffered by the it8368e. this makes the sed1374 virtually transparent to pc card devices that use the same slot. 3.1 hardware description the ite8368e has been specially designed to support epson lcd controllers. the ite it8368e provides eleven multi-function io pins (mfio). configuration registers may be used to allow these mfio pins to provide the control signals required to implement the sed1374 cpu interface. the pr31500/pr31700 processor only provides addresses a[12:0], therefore devices requiring more address space must use an external device to latch a[25:13]. the it8368es mfio pins can be configured to provide this latched address. figure 3-1: sed1374 to pr31500/pr31700 connection using an it8368e it8368e sed1374 ha[12:0] ab[12:0] hd[31:24] db[7:0] lha[23]/mfio[10] we1# we0# rd1# rd0# cs# lha[22]/mfio[9] lha[21]/mfio[8] lha[20]/mfio[7] lha[19]/mfio[6] wait# /cardxwait reset# ab[15:13] pr31500/pr31700 hd[23:16] db[15:8] dclkout endian system reset lha[15:13]/ oscillator ...or... pull-up v dd bclk clki see text clock divider bs# io v dd , core v dd +3.3v mfio[2:0]
epson research and development page 11 vancouver design center interfacing to the philips mips pr31500/pr31700 processor sed1374 issue date: 98/11/09 x26a-g-012-01 the generic #1 host interface control signals of the sed1374 are asynchronous with respect to the sed1374 bus clock. this gives the system designer full flexibility to choose the appropriate source (or sources) for clki and bclk. the choice of whether both clocks should be the same, and whether to use dclkout (divided) as clock source, should be based on the desired: ? pixel and frame rates. ? power budget. ? part count. ? maximum sed1374 clock frequencies. the sed1374 also has internal clock dividers providing additional flexibility. 3.2 it8368e configuration the it8368e provides eleven multi-function io pins (mfio). the it8368e must have both fix attribute/io and vga modes on. when both these modes are enabled, the mfio pins provide control signals needed by the sed1374 host bus interface, and a 16m byte portion of the system pc card attribute and io space is allocated to address the sed1374. when accessing the sed1374 the associated card-side signals are disabled in order to avoid any conflicts. for mapping details, refer to section 3.3: memory mapping and aliasing. for connection details see figure 3-1: sed1374 to pr31500/pr31700 connection using an it8368e, on page 10. for further information on the it8368e, refer to the it8368e pc card/gpio buffer chip specification . note when a second it8368e is used, that circuit should not be set in vga mode.
page 12 epson research and development vancouver design center sed1374 interfacing to the philips mips pr31500/pr31700 processor x26a-g-012-01 issue date: 98/11/09 3.3 memory mapping and aliasing when the pr31500/pr31700 accesses the pc card slots without the ite it8368e, its system memory is mapped as in table 3-1:, pr31500/pr31700 to unbuffered pc card slots system address mapping. note bits card1ioen and card2ioen need to be set in pr31500/pr31700 memory configuration register 3. table 3-1: pr31500/pr31700 to unbuffered pc card slots system address mapping when the pr31500/pr31700 accesses the pc card slots buffered through the ite it8368e, bits card1ioen and card2ioen are ignored and the attribute/io space of the pr31500/pr31700 is divided into attribute, i/o and sed1374 access. table 3-2:, pr31500/pr31700 to pc card slots address remapping using the it8368e provides all details of the attribute/io address reallocation by the it8368e. table 3-2: pr31500/pr31700 to pc card slots address remapping using the it8368e philips address size function (cardnioen=0) function (cardnioen=1) 0800 0000h 64m byte card 1 attribute card 1 io 0c00 0000h 64m byte card 2 attribute card 2 io 6400 0000h 64m byte card 1 memory 6400 0000h 64m byte card 2 memory it8368e uses pc card slot # philips address size function 1 0800 0000h 16m byte card 1 io 0900 0000h 16m byte sed1374 (aliased 256 times at 64k byte intervals) 0a00 0000h 32m byte card 1 attribute 6400 0000h 64m byte card 1 memory 2 0c00 0000h 16m byte card 2 io 0d00 0000h 16m byte sed1374 (aliased 256 times at 64k byte intervals) 0e00 0000h 32m byte card 2 attribute 6800 0000h 64m byte card 2 memory
epson research and development page 13 vancouver design center interfacing to the philips mips pr31500/pr31700 processor sed1374 issue date: 98/11/09 x26a-g-012-01 3.4 sed1374 configuration the sed1374 is configured at power up by latching the state of the cnf[4:0] pins. pin bs# also plays a role in host bus interface configuration. for details on configuration, refer to the sed1374 hardware functional specification , document number x26a-a-001-xx. the table below shows those configuration settings relevant to this specific interface. when the sed1374 is configured for generic #1 interface, the host interface pins are mapped as in the table below. table 3-3: sed1374 configuration using the it8368e sed1374 configuration pin value hard wired on this pin is used to configure: 1 (io v dd )0 (v ss ) bs# generic #2 generic #1 cnf3 big endian little endian cnf[2:0] 111: generic #1 or #2 = configuration for connection using ite it8368e table 3-4: sed1374 generic #1 interface pin mapping pin name pin function we1# we1# bs# connect to v ss rd/wr# rd1# rd# rd0# we0# we0#
page 14 epson research and development vancouver design center sed1374 interfacing to the philips mips pr31500/pr31700 processor x26a-g-012-01 issue date: 98/11/09 4 software test utilities and windows? ce v2.0 display drivers are available for the sed1374. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 1357cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the sed1374 test utilities and windows ce v2.0 display drivers are available from your sales support contact or www.erd.epson.com.
epson research and development page 15 vancouver design center interfacing to the philips mips pr31500/pr31700 processor sed1374 issue date: 98/11/09 x26a-g-012-01 5 technical support 5.1 epson lcd controllers (sed1374) 5.2 philips mips pr31500/pr31700 processor 5.3 ite it8368e japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 philips semiconductors handheld computing group 4811 e. arques avenue m/s 42, p.o. box 3409 sunnyvale, ca 94088-3409 tel: (408) 991-2313 http://www.philips.com integrated technology express, inc. sales & marketing division 2710 walsh avenue santa clara, ca 95051, usa tel: (408) 980-8168 fax: (408) 980-9232 http://www.iteusa.com
page 16 epson research and development vancouver design center sed1374 interfacing to the philips mips pr31500/pr31700 processor x26a-g-012-01 issue date: 98/11/09 this page left blank
sed1374/75 embedded memory color lcd controller sdu1374/75-tmpr3912/22u cpu module document number: x00a-g-004-01 copyright ? 1998 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all other trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center sdu1374/75-tmpr3912/22u cpu module x00a-g-004-01 issue date: 98/12/23 this page left blank
epson research and development page 3 vancouver design center sdu1374/75-tmpr3912/22u cpu module issue date: 98/12/23 x00a-g-004-01 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.1 general description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 2 sed1374/75 bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 bus interface modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 2.2 generic #2 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 3 tmpr3912/22u and sed1374/75 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1 hardware connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.2 memory mapping and aliasing . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.3 sed1374/75 configuration and pin mapping . . . . . . . . . . . . . . . . . . . . . . 11 4 cpu module description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1 clock signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1.1 busclk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1.2 clki . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2 lcd connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2.1 50-pin lcd module connector, j3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2.2 standard epson lcd connector, j4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.3 lcd controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.3.1 sed1374 vs. sed1375 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.3.2 lcdpwr polarity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.3.3 sed1374\75 chip select . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
page 4 epson research and development vancouver design center sdu1374/75-tmpr3912/22u cpu module x00a-g-004-01 issue date: 98/12/23 this page left blank
epson research and development page 5 vancouver design center sdu1374/75-tmpr3912/22u cpu module issue date: 98/12/23 x00a-g-004-01 list of tables table 3-1: sed1374/75 configuration for generic #2 bus interface . . . . . . . . . . . . . . . . . . . . . . 11 table 3-2: sed1374/75 generic #2 interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 list of figures figure 3-1: sed1374 to tmpr3912/22u interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
page 6 epson research and development vancouver design center sdu1374/75-tmpr3912/22u cpu module x00a-g-004-01 issue date: 98/12/23 this page left blank
epson research and development page 7 vancouver design center sdu1374/75-tmpr3912/22u cpu module issue date: 98/12/23 x00a-g-004-01 1 introduction this manual describes the interface between the sed1374/75 lcd controller (lcdc) and the tmpr3912/22u microprocessor as implemented on the toshiba 3912/22 and sed1374/75 cpu module. this module is used in conjunction with the toshiba tx risc reference platform. for more information regarding the sed1374 or sed1375 refer to their respective hardware functional specification, document number x26a-a-001-xx and x27a-a-001-xx respectively. for more information regarding the tmpr3912/22u, refer to the tmpr3912/22u 32-bit mips risc processor users manual. see the toshiba website under semiconductors at http://toshiba.com/taec/nonflash/indexproducts.html. 1.1 general description the toshiba tx risc reference kit consists of 6 boards which include : a main board, a cpu board, a eprom board, a fmem board, a debug board, and an analog board. the main board acts as the motherboard for all the other add-on boards. in addition to these boards, there is an lcd module that connects to the cpu board. in order to support the add-on lcd panel that connects to the lcd module, the cpu board microprocessor must have an internal lcd controller or the cpu board must have an lcd controller on it that interfaces to the microprocessor. for the tmpr3912/22u microprocessor, the sed1374 or sed1375 lcdc is used to provide support for lcd panels. the lcdc is socketed so that it can be interchanged between the sed1374 and the sed1375. these controllers are very similar, with the main differences being the amount of embedded display memory and the lookup-table archi- tecture (lut). the sed1374 has 40k bytes of display memory and the sed1375 has 80k bytes. the toshiba tmpr3912/22u processor supports two pc card (pcmcia) slots on the tx risc reference platform. the sed1374 or sed1375 lcd controller uses the pc card slot 1 to interface to the tmpr3912/22u, therefore, this slot is unavailable for use on the tx risc reference platform.
page 8 epson research and development vancouver design center sdu1374/75-tmpr3912/22u cpu module x00a-g-004-01 issue date: 98/12/23 2 sed1374/75 bus interface this section is summary of the bus interface modes available on the sed1374 and sed1375 lcdcs, and offers some detail on the generic #2 bus mode used to implement the interface to the tmpr3912/22u. 2.1 bus interface modes the sed1374/75 implements a general-purpose 16-bit interface to the host micropro- cessor, which may operate in one of several modes compatible with most of the popular embedded microprocessor families. bus interface mode selections are made during reset by sampling the state of the configu- ration pins cnf[2:0] and the bs# line. table 5-1 in the sed1374 or sed1375 hardware functional specification details the values needed for the configuration pins and bs# to select the desired mode.
epson research and development page 9 vancouver design center sdu1374/75-tmpr3912/22u cpu module issue date: 98/12/23 x00a-g-004-01 2.2 generic #2 interface mode generic #2 interface mode is a general and non-processor-specific interface mode on the sed1374/75. the generic # 2 interface mode was chosen for this interface due to its compatibility with the pc card interface. the interface requires the following signals: ? busclk is a clock input which synchronizes transfers between the host cpu and the sed1374/75. busclk is separate from the input clock (clki) and is typically driven by the host cpu system clock. ? the address inputs ab0 through ab15, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset. ? chip select (cs#) is driven by decoding the high-order address lines to select the proper memory address space. ? we1# is the high byte enable for both read and write cycles and we0# is the enable signal for a write access. these must be generated by external decode hardware based upon the control outputs from the host cpu. ? rd# is the read enable for the sed1374/75, to be driven low when the host cpu is reading data from the sed1374/75. rd# must be generated by external decode hard- ware based upon the control outputs from the host cpu. ? wait# is a signal which is output from the sed1374/75 to the host cpu that indicates when data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the sed1374/75 may occur asynchronously to the display update, it is possible that contention may occur in accessing the 1374/75 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high. ? the bus status (bs#) and read/write (rd/wr#) signals are not used in the bus inter- face for generic #2 mode. however, bs# is used to configure the sed1374/75 for generic #2 mode and must be tied high (connected to iovdd = 3.3v). rd/wr# must also be tied high.
page 10 epson research and development vancouver design center sdu1374/75-tmpr3912/22u cpu module x00a-g-004-01 issue date: 98/12/23 3 tmpr3912/22u and sed1374/75 interface 3.1 hardware connections the sed1374/75 occupies the tmpr3912/22us pc card slot #1. therefore, this slot cannot be used for other devices on the main board. the generic # 2 bus mode of the sed1374/75 is used to interface to this pc card slot #1. the sed1374/75 is interfaced to the tmpr3912/22u with minimal glue logic. since the address bus of the tmpr3912/22u is multiplexed, it is demultiplexed using an advanced cmos latch (74act373) to obtain the higher address bits needed for the sed1374/75. the following diagram demonstrates the implementation of the interface. figure 3-1: sed1374 to tmpr3912/22u interface we10# rd# db[7:0] wait# busclk sed1374 reset# ab[15:13] d[31:24] card1wait* a[12:0] tmpr3912/22u 10k pull-up we1# card1csl* card1csh* latch ale system reset we* rd* bs# rd/wr# 3.3v 3.3v endian db[15:8] d[23:16] ab[12:0] 3.3v dclkout cs# clki or... clock divider io v dd , core v dd +3.3v / 2 clock divider / 2 oscillator
epson research and development page 11 vancouver design center sdu1374/75-tmpr3912/22u cpu module issue date: 98/12/23 x00a-g-004-01 3.2 memory mapping and aliasing the sed1374 requires an addressing space of 64k bytes while the sed1375 requires 128k. the on-chip display memory occupies the range 0 through 9fffh. the registers occupy the range ffe0h through ffffh. the tmpr3912/22u demultiplexed address lines a16 and above are ignored if the sed1374 is used, thus it is aliased 1024 times at 64k byte intervals over the 64m byte pc card slot #1 memory space. if the sed1375 is used, address lines a17 and above are ignored; therefore the sed1375 is aliased 512 times at 128k byte intervals. the tmpr3912/22u control signal cardreg# is ignored; therefore the sed1374 also takes up the entire pc card slot #1 configuration space. note if aliasing is undesirable, additional decoding circuitry must be added. 3.3 sed1374/75 configuration and pin mapping the sed1374/75 host bus interface is configured at power up by latching the state of the cnf[3:0] pins. pin bs# also plays a role in host bus interface configuration. one additional configuration pin for the sed1374, cnf4, is also used to set the polarity of the lcdpwr signal. the table below shows the configuration pin connections to configure the sed1374/75 for use with the tmpr3912/22u microprocessor. when the sed1374/75 is configured for generic #2 bus interface mode, the host interface pins are mapped as in the table below. table 3-1: sed1374/75 configuration for generic #2 bus interface sed1374 configuration pin value hard wired on this pin is used to configure: 1 (io v dd )0 (v ss ) bs# generic #2 generic #1 cnf3 big endian little endian cnf[2:0] 111: generic #1 or #2 = configuration for toshiba tmpr3912/22u host bus interface table 3-2: sed1374/75 generic #2 interface pin mapping pin name pin function we1# bhe# bs# connect to io v dd rd/wr# connect to io v dd rd# rd# we0# we#
page 12 epson research and development vancouver design center sdu1374/75-tmpr3912/22u cpu module x00a-g-004-01 issue date: 98/12/23 4 cpu module description this section will describe the various parts of the cpu module that pertain to the sed1374/75 lcd controller. 4.1 clock signals 4.1.1 busclk because the bus clock for the sed1374/75 does not need to be synchronous with the bus interface control signals, a lot of flexibility is available in the choice for busclk. in this cpu module, busclk is a divided by two version of the sdram clock signal, dclkout. since dclkout equals 73.728mhz, busclk = 36.864mhz. 4.1.2 clki the pixel clock for the sed1374/75, clki, is also asynchronous with respect to the interface control signals. this clock is selected based upon panel frame rates, power vs performance budget, and maximum input frequencies. the maximum clki input is 25mhz if the internal clki/2 isnt used, and if it is used the maximum input is 50mhz. on the cpu module, clkis default input is a divided by four version of dclkout, which gives a clki = 18.432mhz. this frequency gives good performance for 320x240 resolution panels for both portrait and landscape modes. if power saving is desired, the clki can be reduced by using the internal clki/2 and the various pclk and mclk dividers for portrait mode. a socket for an external oscillator is also provided if a different frequency is required. this option is selected by positioning jumper jp8 in the 2 3 position and adding a standard 14- dip type oscillator in the socket u10. 4.2 lcd connectors 4.2.1 50-pin lcd module connector, j3 the standard connector used on toshibas cpu modules to connect to the lcd module is included in this cpu module. all twelve lcd data lines, fpdat[11:0], from the sed1374/75, as well as the five video control signals, fpframe, fpshift, fpline, drdy, lcdpwr, are passed through this connector. through this connector, the sed1374/75 supports monochrome and color stn panels up to a resolution of 640x480 as well as color tft/d-tft up to a resolution of 640x480. all touch panel signals from the main board have also been routed through this connector.
epson research and development page 13 vancouver design center sdu1374/75-tmpr3912/22u cpu module issue date: 98/12/23 x00a-g-004-01 4.2.2 standard epson lcd connector, j4 a shrouded 40-pin header, j4, is also added to the cpu module to connect to lcd panels. this header is the standard lcd connector used on epson research and development evaluation boards and can be used to directly connect lcd panels to the sed1374/75 controller. all lcd signals are buffered to allow 3.3v or 5.0v logic lcd panels to be connected. jumper, jp9, selects between these two types of panels. a positive power supply for panels requiring a positive bias voltage is supplied to header j4, by the lcd module through the 50-pin lcd module connector, j3. no negative power supply is available on the lcd module, therefore only panels which have their own bias voltage supply, or those that use a positive supply, can be connected to j4. the lcd module can only support these panels as well. header, j4, and its associated buffers and components have been left unpopulated on the cpu module. these parts can be added by the user if desired. 4.3 lcd controller 4.3.1 sed1374 vs. sed1375 the lcd controller used in conjunction with the tmpr3912/22u microprocessor can either be a sed1374 or a sed1375. if a sed1374 is used, jumper jp7 must be set to position 1 2. this setting allows cnf4 to be configured for the sed1374. cnf4 controls the polarity of the lcdpwr signal and can be set either high or low with jumper, jp11. if a sed1375 is used, jumper jp7 must be set to position 2 3. this setting allows pin 45 of the lcdc to be used as address bit, ab16, which is needed on the sed1375 to accom- modate the larger display memory . 4.3.2 lcdpwr polarity the power supply on the lcd module used lcdon, an active low signal to turn on the supply. this signal is connected to lcdpwr. since lcdpwr is configurable on the sed1374 and is set active high on the sed1375, a facility must be provided to invert this signal if it is active high so that lcdon will be the right polarity to turn on the lcd power supply. jumper, jp10 must be set to position 1 2 if lcdpwr is active low and to position 2 3 if lcdpwr is active high. 4.3.3 sed1374\75 chip select minimal glue logic is used on the cpu module to provide the chip select signal, cs#, for the lcdc. a simple and gate activates the sed1374/75 whenever the pc card slot #1 is accessed, whether it be memory space or attribute space.
page 14 epson research and development vancouver design center sdu1374/75-tmpr3912/22u cpu module x00a-g-004-01 issue date: 98/12/23 this page left blank
sed1374 embedded memory color lcd controller interfacing to an 8-bit processor document number: x26a-g-013-01 copyright ? 1999 epson research and development, inc. all rights reserved. information in this document is subject to change without notice. you may download and use this document, but only for your own use in evaluating seiko epson/epson products. you may not modify the document. epson research and development, inc. disclaims any representation that the contents of this document are accurate or current. the programs/technologies described in this document may contain material protected under u.s. and/or international patent laws. epson is a registered trademark of seiko epson corporation. all trademarks are the property of their respective owners.
page 2 epson research and development vancouver design center sed1374 interfacing to an 8-bit processor x26a-g-013-01 issue date: 99/05/04 this page left blank
epson research and development page 3 vancouver design center interfacing to an 8-bit processor sed1374 issue date: 99/05/04 x26a-g-013-01 table of contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 interfacing to an 8-bit processor . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 the generic 8-bit processor system bus . . . . . . . . . . . . . . . . . . . . . 8 3 sed1374 bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.1 host bus pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.2 generic #2 interface mode . . . . . . . . . . . . . . . . . . . . . . . . . 10 4 8-bit processor to sed1374 interface . . . . . . . . . . . . . . . . . . . . . . . . . 11 4.1 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4.2 sed1374 hardware configuration . . . . . . . . . . . . . . . . . . . . . . 12 4.3 register/memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . 12 5 software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 6 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.1 documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.2 document sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 7 technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 7.1 epson lcd/crt controllers (sed1374) . . . . . . . . . . . . . . . . . . . . 15
page 4 epson research and development vancouver design center sed1374 interfacing to an 8-bit processor x26a-g-013-01 issue date: 99/05/04 this page left blank
epson research and development page 5 vancouver design center interfacing to an 8-bit processor sed1374 issue date: 99/05/04 x26a-g-013-01 list of tables table 3-1: host bus interface pin mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 table 4-1: configuration settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 table 4-2: host bus selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 list of figures figure 4-1: typical implementation of an 8-bit processor to the sed1374 generic #2 interface . . . 11
page 6 epson research and development vancouver design center sed1374 interfacing to an 8-bit processor x26a-g-013-01 issue date: 99/05/04 this page left blank
epson research and development page 7 vancouver design center interfacing to an 8-bit processor sed1374 issue date: 99/05/04 x26a-g-013-01 1 introduction this application note describes the hardware environment required to provide an interface between the sed1374 embedded memory lcd controller and a generic 8-bit micropro- cessor. the designs described in this document are presented only as examples of how such interfaces might be implemented. this application note will be updated as appropriate. please check the epson electronics america website at http://www.eea.epson.com for the latest revision of this document before beginning any development. we appreciate your comments on our documentation. please contact us via email at techpubs@erd.epson.com.
page 8 epson research and development vancouver design center sed1374 interfacing to an 8-bit processor x26a-g-013-01 issue date: 99/05/04 2 interfacing to an 8-bit processor 2.1 the generic 8-bit processor system bus although the sed1374 does not directly support an 8-bit cpu, with minimal external logic, an 8-bit interface can be achieved. typically, the bus of an 8-bit microprocessor is straight forward with minimal cpu and system control signals. to connect a memory mapped device such as the sed1374, only the write, read, and wait control signals, as well as the data and address lines, need to be interfaced. since the sed1374 is a 16-bit device, some external logic is required.
epson research and development page 9 vancouver design center interfacing to an 8-bit processor sed1374 issue date: 99/05/04 x26a-g-013-01 3 sed1374 bus interface this section is a summary of the host bus interface modes available on the sed1374 and offers some detail on the generic #2 host bus interface used to implement the interface to an 8-bit processor. the sed1374 provides a 16-bit interface to the host microprocessor which may operate in one of several modes compatible with most of the popular embedded microprocessor families. the bus interface mode used in this example is: ? generic #2 (this bus interface is isa-like and can easily be modified to support an 8-bit cpu). 3.1 host bus pin connection the following table shows the functions of each host bus interface signal. for details on configuration, refer to the sed1374 hardware functional specification , document number x26a-a-001-xx. table 3-1: host bus interface pin mapping sed1374 pin names generic #2 description ab[15:1] a[15:1] address [15:1] ab0 a0 address a0 db[15:0] d[15:0] data we1# bhe# byte high enable cs# external decode chip select bclk bclk bus clock bs# n/c must be tied to io v dd rd/wr# n/c must be tied to io v dd rd# rd# read we0# we# write wait# wait# reset# reset#
page 10 epson research and development vancouver design center sed1374 interfacing to an 8-bit processor x26a-g-013-01 issue date: 99/05/04 3.2 generic #2 interface mode generic #2 host bus interface is a general, non-processor specific interface mode on the sed1374 that is ideally suited to interface to an 8-bit processor bus. the interface requires the following signals: ? busclk is a clock input which synchronizes transfers between the host cpu and the sed1374. it is separate from the input clock (clki) and is typically driven by the host cpu system clock. if the host cpu bus does not provide this clock, an asynchronous clock can be provided. ? the address inputs ab0 through ab15, and the data bus db0 through db15, connect directly to the cpu address and data bus, respectively. on 32-bit big endian architec- tures such as the power pc, the data bus would connect to the high-order data lines; on little endian hosts, or 16-bit big endian hosts, they would connect to the low-order data lines. the hardware engineer must ensure that cnf3 selects the proper endian mode upon reset. note in an 8-bit environment d[7:0] must also be connected to d[15:8] respectively (see figure 4-1: typical implementation of an 8-bit processor to the sed1374 generic #2 interface ) ? chip select (cs#) is driven by decoding the high-order address lines to select the proper memory address space. ? bhe# (we1#) is the high byte enable for both read and write cycles. note in an 8-bit environment, this signal is driven by inverting address line a0 thus indicating that odd addresses are to be r/w on the high byte of the data bus. ? we0# is the enable signal for a write access, to be driven low when the host cpu is writing the 1374 memory or registers. ? rd# is the read enable for the sed1374, to be driven low when the host cpu is reading data from the sed1374. ? wait# is a signal which is output from the sed1374 to the host cpu that indicates when data is ready (read cycle) or accepted (write cycle) on the host bus. since host cpu accesses to the sed1374 may occur asynchronously to the display update, it is possible that contention may occur in accessing the 1374 internal registers and/or refresh memory. the wait# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. this signal is active low and may need to be inverted if the host cpu wait state signal is active high. ? the bus status (bs#) and read/write (rd/wr#) signals are not used in the bus inter- face for generic #2 mode. however, bs# is used to configure the sed1374 for generic #2 mode and should be tied high (connected to io v dd ). rd/wr# should also be tied high.
epson research and development page 11 vancouver design center interfacing to an 8-bit processor sed1374 issue date: 99/05/04 x26a-g-013-01 4 8-bit processor to sed1374 interface 4.1 hardware description the interface between the sed1374 and an 8-bit processor requires minimal glue logic. a decoder is used to generate the chip select for the sed1374 based on where the sed1374 is mapped into memory. alternatively, if the processor supports a chip select module, it can be programmed to generate a chip select for the sed1374 without the need of an address decoder. an inverter inverts a0 to generate the byte high enable signal for the sed1374. if the 8-bit host interface has an active high wait signal, it must be inverted as well. in order to support an 8-bit microprocessor with a 16-bit peripheral, the low and high order bytes of the data bus must be connected together. the following diagram shows a typical implementation of an 8-bit processor to sed1374 interface. figure 4-1: typical implementation of an 8-bit processor to the sed1374 generic #2 interface generic 8-bit bus sed1374 a[15:0] d[7:0] decoder wait# we# rd# a0 busclk ab[15:0] db[7:0] cs# wait# we0# rd# rd/wr# busclk reset# db[15:8] io v dd bs# bhe# (we1#) system reset note: when connecting the sed1374 reset# pin, the system designer should be aware of all conditions that may reset the sed1374 (e.g. cpu reset can be asserted during wake-up from power-down modes, or during debug states).
page 12 epson research and development vancouver design center sed1374 interfacing to an 8-bit processor x26a-g-013-01 issue date: 99/05/04 4.2 sed1374 hardware configuration the sed1374 uses cnf4 through cnf0 and bs# to allow selection of the bus mode and other configuration data on the rising edge of reset#. refer to the sed1374 hardware functional specification , document number x26a-a-001-xx for details. the tables below show only those configuration settings important to the 8-bit processor interface. the endian must be selected based on the 8-bit processor used. 4.3 register/memory mapping the sed1374 needs a 64k byte block of memory to accommodate its 40k byte display buffer and its 32 byte register set. the starting memory address is located at 0000h of the 64k byte memory block while the internal registers are located in the upper 32 bytes of this memory block. (i.e. reg[0]= ffe0h). an external decoder can be used to decode the address lines and generate a chip select for the sed1374 whenever the selected 64k byte memory block is accessed. if the processor supports a general chip select module, its internal registers can be programmed to generate a chip select for the sed1374 whenever the sed1374 memory block is accessed. table 4-1: configuration settings signal low high cnf0 see host bus selection table below see host bus selection table below cnf1 cnf2 cnf3 little endian big endian cnf4 active low lcdpwr signal active high lcdpwr signal = configuration for 8-bit processor host bus interface table 4-2: host bus selection cnf2 cnf1 cnf0 bs# host bus interface 1 1 1 1 generic #2, 16-bit = required configuration for this application.
epson research and development page 13 vancouver design center interfacing to an 8-bit processor sed1374 issue date: 99/05/04 x26a-g-013-01 5 software test utilities and windows? ce v2.0 display drivers are available for the sed1374. full source code is available for both the test utilities and the drivers. the test utilities are configurable for different panel types using a program called 1374cfg, or by directly modifying the source. the windows ce v2.0 display drivers can be customized by the oem for different panel types, resolutions and color depths only by modifying the source. the sed1374 test utilities and windows ce v2.0 display drivers are available from your sales support contact or on the internet at http://www.eea.epson.com.
page 14 epson research and development vancouver design center sed1374 interfacing to an 8-bit processor x26a-g-013-01 issue date: 99/05/04 6 references 6.1 documents ? epson research and development, inc., sed1374 embedded memory lcd controller hardware functional specification ; document number x26a-a-002-xx. ? epson research and development, inc., sdu1374b0c rev. 1.0 isa bus evaluation board user manual; document number x26a-g-005-xx. ? epson research and development, inc., programming notes and examples ; document number x26a-g-002-xx. 6.2 document sources ? epson electronics america website: http://www.eea.epson.com.
epson research and development page 15 vancouver design center interfacing to an 8-bit processor sed1374 issue date: 99/05/04 x26a-g-013-01 7 technical support 7.1 epson lcd/crt controllers (sed1374) japan seiko epson corporation electronic devices marketing division 421-8, hino, hino-shi tokyo 191-8501, japan tel: 042-587-5812 fax: 042-587-5564 http://www.epson.co.jp hong kong epson hong kong ltd. 20/f., harbour centre 25 harbour road wanchai, hong kong tel: 2585-4600 fax: 2827-4346 taiwan, r.o.c. epson taiwan technology & trading ltd. 10f, no. 287 nanking east road sec. 3, taipei, taiwan, r.o.c. tel: 02-2717-7360 fax: 02-2712-9164 singapore epson singapore pte., ltd. no. 1 temasek avenue #36-00 millenia tower singapore, 039192 tel: 337-7911 fax: 334-2716 europe epson europe electronics gmbh riesstrasse 15 80992 munich, germany tel: 089-14005-0 fax: 089-14005-110 north america epson electronics america, inc. 150 river oaks parkway san jose, ca 95134, usa tel: (408) 922-0200 fax: (408) 922-0238 http://www.eea.epson.com
page 16 epson research and development vancouver design center sed1374 interfacing to an 8-bit processor x26a-g-013-01 issue date: 99/05/04 this page left blank


▲Up To Search▲   

 
Price & Availability of NECVR4102

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X